I received the error "Line 12: Incorrect syntax near '('." in the following scripts that was generated from SQL 2005. The error occurred only on the tables that have PRIMARY KEY CLUSTERED. How can I fix it.USE [dbTest]SET ANSI_NULLS ONGOSET QUOTED_IDENTIFIER ONGOSET ANSI_PADDING ONGOCREATE TABLE [dbo].[tblUploadQueue]( [numuploadqid] [bigint] IDENTITY(1,1) NOT NULL, [vchrfilename] [varchar](50) NOT NULL, [bitproccflag] [smallint] NOT NULL, [vchrcreatedwho] [varchar](30) NOT NULL, [dtmcreateddate] [datetime] NOT NULL, [vchrmodifiedwho] [varchar](30) NOT NULL, [dtmmodifieddate] [datetime] NOT NULL, CONSTRAINT [PK_tblUploadQueue] PRIMARY KEY CLUSTERED ( [numuploadqid] ASC)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]) ON [PRIMARY]GO
By the way, why it generated ) ON [PRIMARY] twice? I removed the second one but the error was still the same.Thanks for your help.DanYeung