I need to do this from an ASP.NET web app:
Alter Table Contacts Disable Trigger All
-- Do some stuff
Alter Table Contacts Enable Trigger All
In some situations the Disable Trigger
statement hangs. Where should I start looking to figure out what's causing this? If I restart SQL server it goes back to behaving normally.