Click here to Skip to main content
15,914,795 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Dear All,

This is am interrupt at database. Now i wanna to monitor the sql database using service. I havs syntax of that code below


SQL
USE YourDatabaseName;

CREATE QUEUE NameChangeQueue;

CREATE SERVICE NameChangeService ON QUEUE NameChangeQueue ([http://schemas.microsoft.com/SQL/Notifications/PostQueryNotification]);

GRANT SUBSCRIBE QUERY NOTIFICATIONS TO YourUserName;

ALTER DATABASE YourDatabaseName SET ENABLE_BROKER;



In the above code i dont know what is YourUserName. Any one have idea about this one please post your valuable commands. All Replies are Welcome.....

Thanks & Regards

Dhinesh Kumar.V
Posted

1 solution

That should be the database principal you are using.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900