2 posts in SQL Server

Defeating deadlocks with READ_COMMITTED_SNAPSHOT isolation

Adam Cooper /

I was recently asked by a client to look into an issue they were having with a WCF web service. The application was generating a large number of errors, filling a 5MB log file every 5 minutes, and the performance of the underlying database was so bad that a simple query such as: SELECT COUNT (*) FROM Address would take up to a minute and a half to return. Checking the…

Enable Service Broker taking forever

Adam Cooper /

Today I had to enable Service Broker in SQL 2008 because when using a SqlCacheDependency I was getting the error: The SQL Server Service Broker for the current database is not enabled, and as a result query notifications are not supported. Please enable the Service Broker for this database if you wish to use notifications. This should be pretty easy just using the following command: ALTER DATABASE 'DatabaseName' SET ENABLE_…

Success! Your account is fully activated, you now have access to all content.
Success! Your billing info is updated.
Billing info update failed.