我正在尝试创建一个表。这是创建 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
消息 170,级别 15,状态 1,第 12 行第 12 行:'(' 附近的语法不正确。
这是错误突出显示的行:
)与(PAD_INDEX = OFF,STATISTICS_NORECOMPUTE = OFF,IGNORE_DUP_KEY = OFF,ALLOW_ROW_LOCKS = ON,ALLOW_PAGE_LOCKS = ON)在主要
我该如何解决这个问题?