我在带有 Create Script to New 的表上使用了 SQL Server 管理工作室,并做了一些小的改动。给我一个错误“'('”附近的语法不正确,用于“WITH”之后的“(”)
/* EventType Table Creation */
CREATE TABLE [EventType]
(
[pkEventID] [int] IDENTITY(1,1) NOT NULL,
[Description] [nvarchar](50) NOT NULL,
[BeginDate] [datetime] NOT NULL,
[EndDate] [datetime] NOT NULL,
[Comments] [nvarchar](500) NOT NULL,
CONSTRAINT [PK_EventType] PRIMARY KEY
CLUSTERED
(
[pkEventID] 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