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

Drop all the Primary keys in the database

$
0
0

Hello,

I do have a database called "TestDB" (for instance), in that database there are 10 tables, I would like to drop/delete all the primary keys from all the tables using script, because we would like do that very often or please suggest me which is the best to do that, in our environment we have more than 50 tables, we cannot go to each and every table and drop them.

Please provide suitable solution.

Thanks in advance.

Kind Regards


Viewing all articles
Browse latest Browse all 12963

Latest Images

Trending Articles



Latest Images

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