This was posted by Brian Knight on SQLServerCentral.com in a script entitled "Quickly Enable/Disable Triggers and Constraints"(for reference):
Code:
sp_msforeachtable "ALTER TABLE ? NOCHECK CONSTRAINT all"
sp_msforeachtable "ALTER TABLE ? DISABLE TRIGGER all"
/*
To enable them back, you can reverse the function. Let's get a
little more creative this time. We'll explicitly set the parameters
and list each table before enabling them so we can verify any
errors easily.
*/
sp_msforeachtable @command1="print '?'", @command2="ALTER TABLE ? CHECK CONSTRAINT all"
sp_msforeachtable @command1="print '?'", @command2="ALTER TABLE ? ENABLE TRIGGER all"
http://www.sqlservercentral.com/scri...sp?scriptid=25
BOL also explains how to do this if you look up triggers and alter table syntax