4
我在創建腳本的表上使用了SQL Server管理工作室,並做了一些小改動。給我一個錯誤「附近有語法錯誤('」爲「(」後「和」腳本創建時出現SQL錯誤
/* 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
微軟SQL Server的版本,你執行這個
CREATE TABLE
反對聲明?根據文檔,MS SQL Server 2000的
SQL Management Studio 2005 - 同樣,該工具生成了代碼,然後抱怨它:) – PapaDaniel 2009-04-15 20:58:35