使用Oracle sql developer为ms sql server 2000表创建索引

时间:2015-03-10 07:21:14

标签: sql-server oracle-sqldeveloper

我正在尝试使用Oracle sql developer version 4.0.2为Ms SQL server 2000表创建以下索引,

Create Nonclustered Index [Load_Date] On <table_name>
(   [Load_Date] Asc )
With ( Pad_Index = Off, Statistics_Norecompute = Off, Sort_In_Tempdb =Off, Drop_Existing=Off,Online = Off, Allow_Row_Locks = On,Allow_Page_Locks = On )
On Primary

我收到两个错误,

Error starting at line : 1 in command -

Error at Command Line : 1 Column : 1
Error report -
SQL Error: Line 3: Incorrect syntax near '('.

有关如何解决此问题的任何想法?我需要跨多个数据库创建索引。

感谢

1 个答案:

答案 0 :(得分:0)

问题在于索引的语法。提到的语法适用于SQL Server 2012.应该为MS SQL Server 2000更改语法。