This one works fine (in fact it was a generated script from an existing table):CREATE TABLE [dbo].[ModelLU]( [ModelID] [int] IDENTITY(1,1) NOT NULL, [Model] [nvarchar](255) NULL, CONSTRAINT [aaaaaModelLU_PK] PRIMARY KEY NONCLUSTERED ( [ModelID] ASC)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]) ON [PRIMARY]
This one comes with the error below:CREATE TABLE [dbo].[v2_Office] ( [OfficeID] [int] IDENTITY(1,1) NOT NULL, [OfficeName] [nvarchar](15) NULL, [Office] [nvarchar](4) NULL, [Notes] [nvarchar](50) NULL),CONSTRAINT [aaaaaaOffice_PK] PRIMARY KEY NONCLUSTERED ( [OfficeID] ASC)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]) ON [PRIMARY]
quote:
Msg 102, Level 15, State 1, Line 5Incorrect syntax near ','.Msg 319, Level 15, State 1, Line 9Incorrect syntax near the keyword 'with'. If this statement is a common table expression or an xmlnamespaces clause, the previous statement must be terminated with a semicolon.