USE [WORDDB]
GO
/****** Object: Index [noun_minor] Script Date: 07/03/2013 13:34:21 ******/
CREATE NONCLUSTERED INDEX [noun_minor] ON [dbo].[2013Words]
(
[NOUN_NO] ASC,
[MIN_NO] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
解析查询时,我得到以下错误:SQL Server 2000:
Msg 170,Level 15,State 1,Line 7
附近的语法不正确
第7行:'('。
答案 0 :(得分:3)
最后一组括号中的“创建表”选项来自SQL Server 2005+,与SQ Server 2000不兼容。取出整个列表,包括删除括号,它应该有效。
像这样:
USE [WORDDB]
GO
/****** Object: Index [noun_minor] Script Date: 07/03/2013 13:34:21 ******/
CREATE NONCLUSTERED INDEX [noun_minor] ON [dbo].[2013Words]
(
[NOUN_NO] ASC,
[MIN_NO] ASC
) ON [PRIMARY]
GO