"how to set identity_insert on in sql server 2008 for multiple tables at once" Code Answer

4

at any time, only one table in a session can have the identity_insert property set to on.

so before enabling the other one, you should turn of existing if any.
if it is lesser number of tables you can turn on and turn off before and after your operations.
if the table count is huge, you should automate somehow to enable and disable before your operations.

By JessieArr on May 12 2022

Answers related to “how to set identity_insert on in sql server 2008 for multiple tables at once”

Only authorized users can answer the Search term. Please sign in first, or register a free account.