Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I Need Help !!!! Incorrect syntax near 'COLLATE'.

Status
Not open for further replies.

bmann

Programmer
Oct 8, 2002
128
US
I generated a sql script for a table. I am trying to recreate table and get an error 'Incorrect syntax near 'COLLATE'. I have never seen this before. I need someone's help.
 
Thanks for responding. Here is the code.

CREATE TABLE [dbo].[FILE_CONFIG] (
[REC_ID] [int] NOT NULL ,
[SOURCE_PATH] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
[ARCHIVE_PATH] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
) ON [PRIMARY]
GO
 
Well that worked on my machine when I tested it. But this also worked, maybe it will work for you.
CREATE TABLE [dbo].[FILE_CONFIG] (
[REC_ID] [int] NOT NULL ,
[SOURCE_PATH] [varchar] (50) NULL ,
[ARCHIVE_PATH] [varchar] (50) NULL
) ON [PRIMARY]
GO
 
Thanks. I did the same thing and it worked. But all I did was generate a sql script from a previous table. This has not happen before. Thanks anyway.

Brian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top