I want to import data into db.
In order to do so I need to set indentity insert on
.
Setting this with edit mapping
for 500+ tables is not an option.
So I found this SO Question
But some of that tables already have it set to ON so Puting this in one query will produce error on 1 wrong statement and stopped. How to force it to ignore errors end go to next statement until it will try to set it ON for all tables?