sp_MSforeachtable is a undocumented system stored procedure, which will loop through all tables in a database.. So the below code is useful if you want to disable/enable all Foreign Keys at a time..
-- Disable all Constraints
exec sp_MSforeachtable 'ALTER TABLE ? NOCHECK CONSTRAINT ALL'
--Enable all Constraints
exec sp_MSforeachtable 'ALTER TABLE ? CHECK CONSTRAINT ALL'