USE YOURDBNAME
EXEC sp_MSforeachtable @command1="ALTER TABLE ? NOCHECK CONSTRAINT ALL"
Did you like this post?
|
|
|
||
|
|
|
|
|
|
|
subscribe via rss |
|
subscribe via e-mail |
|
|
print this post |
|
follow me on twitter |
|
|
|
||
|
|
|
|
|
|
|
subscribe via rss |
|
subscribe via e-mail |
|
|
print this post |
|
follow me on twitter |
| Feedback: |
Copyright © 2009-2013All Rights Reserved for SQLServerCurry.com by Suprotim Agarwal | Terms and Conditions
comments
0 Responses to "Disable all constraints of all tables in a database using SQL Server"Post a Comment