Quantcast
Channel: SQL Server Database Engine forum
Viewing all articles
Browse latest Browse all 5123

I need to alter all tables in database to set Primary key status from ready only to read /write.

$
0
0

Hi,

I need script that loop on all tables in the database then change the ID column from ready only to be ready/write.

The ID column is primary key and no problem if it became not primary key and disable the auto increment also  for now as this database is not live.

I will do some insertions and I need to revert the status of the tables and column again to be primary key and auto increment.

Urgent please.

Thanks.


Viewing all articles
Browse latest Browse all 5123

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>