0

我在 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
4

1 回答 1

2

请检查 MSDN 上的语法,SQL Server 2000 上没有几个“带选项”。像在线一样,Allow_Row_Lock ...

http://msdn.microsoft.com/en-us/library/aa258260%28SQL.80%29.aspx

于 2012-08-24T05:46:45.557 回答