Hi,
I set up a sample signalR ASP .net MVC application with SQL Server Service broker. I used the tutorial at http://venkatbaggu.com/signalr-database-update-notifications-asp-net-mvc-usiing-sql-dependency/ and it worked just fine.It was working just fine. Each time, there was a change in the database (that was enabled with ENABLE_BROKER), the asp .net app would get notified.
By mistake, I then executed ALTER DATABASE DatabaseName SET ENABLE_BROKER ; for some reason, it kept executing and never completed. It ran for more than an hour and then I stopped this command from Query Analyzer.
As a result of running the ALTER DATABASE, the asp .net app stopped getting notified. Is there a way to debug the broker service? I tried creating a new database and enabled it with broker service, but it never sends out notifications. It looks like there is something at the service level that is stuck and does not let notifications out.
When I execute sp_who2, I noticed a command that is always present and is in a SUSPENDED state, is this normal?
Status Command ProgramName
SUSPENDED DELETE SqlQueryNotificationService-612b3033-ec5e-41e9-9b60-253b0c79c2c8
I checked the following tables and there are no rows in any ofQueue tables
SqlQueryNotificationService-612b3033-ec5e-41e9-9b60-253b0c79c2c8EventNotificationErrorsQueue
QueryNotificationErrorsQueue
ServiceBrokerQueue