Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Dropping vs disabling (no check) a foreign key

$
0
0

I want to truncate  a "child" table, but it is referred in  a foreign key; so truncation fails even there are no rows in parent table. Is only solution is to drop the foreign keys and then truncate.

Other option is to delete the table; but delete does not reseed the identity Any ideas?


Viewing all articles
Browse latest Browse all 23857

Trending Articles



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