SQL Server 2005 Generated Create Table Script not working

后端 未结 7 2228
遇见更好的自我
遇见更好的自我 2021-01-06 00:00

I\'m in the process of creating database scripts for an existing database. I\'m trying to use SQL Server to generate the scripts for me, but the generated scripts are faili

7条回答
  •  迷失自我
    2021-01-06 00:11

    If your target DB is SQL 2000 then it complains about this line

    WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON, FILLFACTOR = 90) ON [PRIMARY]
    

    SQL 2000 only supports

    WITH FILLFACTOR = 90
    

    So there is probably some compatibility setting you can use to only generate SQL 2000 syntax

提交回复
热议问题