Off we go, the first thing to do is to enable Service Broker in the database, since by default it is disabled. If you don't believe me, try this query that shows whether the broker is enabled or not in each of your databases:
USE master;
SELECT name, is_broker_enabled FROM sys.databases;
Then, the code to enable the Service Broker in your database is:
USE master;
ALTER DATABASE melbourne SET ENABLE_BROKER;
Now, after watching that little green dot chase its tail for about 5 minutes, not seemingly getting anywhere, I found this blog post, where the solution was in a comment - this query will not complete if other connections are open to the database! So be sure you have no other windows open in the Management Studio and that users are not connecting to this database.
No comments:
Post a Comment