August 14, 2008 at 3:59 am
Comments posted to this topic are about the item disable/enable indexes for table
Wilfred
The best things in life are the simple things
October 16, 2008 at 7:25 am
Perhaps a correlary script to disable contraints and triggers when copying large amounts of data from one database to another is
sp_msforeachtable "ALTER TABLE ? NOCHECK CONSTRAINT all"
go
sp_msforeachtable "ALTER TABLE ? DISABLE TRIGGER all"
go
sp_msforeachtable "ALTER TABLE ? WITH CHECK CHECK CONSTRAINT all"
go
sp_msforeachtable "ALTER TABLE ? ENABLE TRIGGER all"
go
Steve
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy