小编use*_*898的帖子

生成的bug数据脚本如何不在insert语句中设置IDENTITY?

I'm using SQL Server Management Studio to generate sql script (big one) to update Azure DB. The problem is that the script is generated with IDENTITY on and the insert statements are exported with the ID column which as result gives me the errors :

Cannot insert explicit value for identity column in table 'Table_Name' when IDENTITY_INSERT is set to OFF.

My question is how to generate the script right that is will not use IDENTITY on and the insert.

sql-server ssms azure-sql-database

3
推荐指数
1
解决办法
817
查看次数

标签 统计

azure-sql-database ×1

sql-server ×1

ssms ×1