Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Activation script hangs and cannot shutdown

I have implemented SQL Server Service Broker with error handling according to this article by Remus Resanu.

When I ran the process and the activation script got kicked off but never stopped processing. According to the SQL Server log file it looks like I have a typo in my error handling and it is now stuck in an infinite loop.

I have tried to kill the process using kill <pid> but I get the message Only user processes can be killed. I have also tried restarting the server but the activation script would start again.

How do I kill the runaway activation process?

like image 703
jsturtevant Avatar asked Dec 29 '25 22:12

jsturtevant


1 Answers

I was not able to find a solution through google/bing search. I eventually remembered that we enabled the Service broker through a SQL command, so I tried disabling it and that seems to have worked:

ALTER DATABASE dbname SET DISABLE_BROKER;
like image 150
jsturtevant Avatar answered Jan 01 '26 14:01

jsturtevant



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!