我在SQL Server 2008 R2中自动生成了一个索引创建查询,并在SQL Server 2000上尝试过。它不起作用并且有错误。有人可以查看这个查询吗?谢谢!
USE [DBDBDB]
GO
CREATE NONCLUSTERED INDEX [Index_FullReturn] ON [dbo].[tbl_Ev_Data]
(
[OffDateTime] ASC,
[Type] ASC,
[Tag] ASC,
[Name] ASC,
[Description] ASC,
[Category] 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
答案 0 :(得分:2)
请检查MSDN上的语法,SQL Server 2000上没有几个“with options”。如在线,Allow_Row_Lock ......
http://msdn.microsoft.com/en-us/library/aa258260%28SQL.80%29.aspx