SQL Service Broker enabled causes 100% CPU
- by user40373
I have new set of code for a website that is using SqlCacheDependencies based on sql commands. I have enabled SQL Service Broker and some triggers on update/insert/delete and it is causing 100% CPU. Any ideas if I am doing something wrong or suggestions to improve?
Here are the SQLchanges I ran:
alter database DATABASE_NAME set enable_broker WITH ROLLBACK IMMEDIATE
grant subscribe query notifications to CONNECTION_USER_NAME
grant send on service::sqlquerynotificationservice to CONNECTION_USER_NAME
ALTER AUTHORIZATION ON DATABASE::DATABASE_NAME TO CONNECTION_USER_NAME;