TSQL DDL约束错误:“第12行:''''附近的语法不正确

时间:2012-10-28 05:36:00

标签: tsql sql-server-2005 ddl

我正在尝试创建一个表。这是创建DDL。我在SQL Server 2005 MSDE上运行时遇到错误。我不明白为什么 - 它在2008/2012上运作良好。

CREATE TABLE [dbo].[CuCompanyHolidays](
    [HolidayID] [int] IDENTITY(1,1) NOT NULL,
    [HolidayName] [varchar](255) NULL,
    [HolidayDate] [datetime] NULL,
    [PartOff] [float] NULL,
    [CreateDate] [datetime] NULL,
    [LastUpdate] [datetime] NULL,
 CONSTRAINT [PK_cuCompanyHolidays] PRIMARY KEY CLUSTERED 
(
    [HolidayID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

GO
  

Msg 170,Level 15,State 1,Line 12   第12行:'('。

附近的语法不正确

以下是错误突出显示的行:

  

)WITH(PAD_INDEX = OFF,STATISTICS_NORECOMPUTE = OFF,IGNORE_DUP_KEY = OFF,ALLOW_ROW_LOCKS = ON,ALLOW_PAGE_LOCKS = ON)ON PRIMARY

我该如何解决这个问题?

0 个答案:

没有答案