November 30, 2007 at 5:04 am
Hi
Is there any sp or command to deactivate and activate all constraints in a database...
Thanks in Advance
November 30, 2007 at 5:14 am
Not that I am aware of.
You'd need to script the removal and creation of the constraints.
November 30, 2007 at 5:23 am
November 30, 2007 at 5:31 am
Thanks to all
I find the solution in DB level by giving sp_msforeachtable @command1="alter table nocheck constraint all"
Regards
Ratheesh.K.Nair
November 30, 2007 at 5:33 am
Nice...easier than the way I did it the other day!!!!!!!!!!!!!! :crazy:
November 30, 2007 at 5:35 am
Hi,
Check the Following link http://www.databasejournal.com/features/mssql/article.php/1459571
Regards,
Ahmed
Viewing 6 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply