Microsoft SQL Service Management Studio 2005 'Script XXX as CREATE To' problem

后端 未结 1 1706
不思量自难忘°
不思量自难忘° 2021-01-17 00:03

When using the \'Script Index as CREATE To\' to duplicate an index from one table to another table I am not able to run the script. Without editing the generated code I get

相关标签:
1条回答
  • 2021-01-17 00:40

    What's the compatibility mode or server level set to for the destination database? Is it SQL 2000 (or compatibility mode 80)? If so, then the WITH option will not run; the syntax generated by the SQL 2005 Mgmt Studio is 2005 compliant (even if you issue it against a SQL 2000 server or 2000-compliant database).

    0 讨论(0)
提交回复
热议问题