I'm using Event Notifications (sending messages to another server), and to make it easy to set up I built it in MSDB (existing database, already has service broker, etc). However, we wound up with... issues... and now I'm trying to clean up 5 conversations, each of which has millions of messages in sys.transmission queue. MSDB is 40gb.
Trying to END even 1 conversation (the smallest, with 3 million messages) made the log grow past 15gb before I killed it.
It appears that I need to ALTER DATABASE SET NEW_BROKER in order to reset everything, which is fine. But since it's MSDB, I would expect DatabaseMail to be affected.
What do I need to do with DatabaseMail.exe once I perform the ALTER? Can I just kill the executable and it'll restart? Do I need to do anything else?
Thanks in advance.