Service Broker causes SqlExceptions
Hello, I have used sql server service borker notification service and queue for my .Net application (windows service) to get query notification when any update in query(table). in application i have...
View ArticleAre error messages created somewhere when an event_notifications are...
Newbie question: We discovered that we had a value in sys.event_notifications.broker_instance that did not correspond to the value of sys.databases.service_broker_guid for any existing database. We...
View ArticleSqlDependency OnChange Event Fires repeatedly
I am using the SqlDependency to notify me of data changes in a table. However, as soon as I start it, the OnChange event fires over and over even though no data has changed. Essentially All I want to...
View ArticleMessage only arrives on queue once.
Hi,I am new to SQL Service Broker and am currently trying to develop a POC. I need to call a web service when a insert is made on a table. I have setup 3 queues and 3 services with associated message...
View ArticleSQL Server 2008 R2 service broker implementation
Hi, We are using a SQL Server 2008 R2 database to support an e-commerce application which is written in C#. I am pretty new to the concept of service broker.Could you please help me understand what...
View ArticleClearing all messages from a service broker queue
Hi All,Iam currently trying to remove the messages from the queue if the count is more than 15000 as shown below in the stored procedure : Declare @CountMBSClientStatusSendQueue BIGINT SELECT...
View Article"Broker / DBM Transport:Receive I/O Bytes Total" counter is missing.
HiI noticed that "Receive I/O Bytes Total" and "Send I/O Bytes Total" counters are missing under "Broker / DBM Transport" object.However, documentation says it should be there,...
View ArticleIssue with SQLDependency along with Enity Framework and C#
Hi All,I am trying to run a sample created using C# for SQL dependency. Whenever certain data is inserted in given table, I want a notification in my C# application. Right now, I am having both (my C#...
View ArticleLog shipping failed when cluster failed over to second node
i have a clustered environment with node 1 and node 2node one is active node and up 99 % of the time so while it was on node one i setup log shipping for this server.while configuring the log shipping...
View ArticleUnable to enable service broker
Dear all,I tried to create DBMail in one of our prod server, i did the following operation at start getting error. Kindly help me how to avoid this problemalter database msdb set enable_broker with...
View ArticleBest practice for cleaning up conversations after a recieve timeout
We have a pattern where sql server sends a message through service broker and waits for a response (say 10 ten secs), if it doesn't get a response, it will assume a default response and carry on. The...
View ArticleWhen to use WAITFOR?
Hi all,I'm in doubt whether to use WAITFOR RECEIVE in my activation SP or not.Actually I'm confused if WAITFOR is necessary in case I have activation SP or just RECEIVE is enough inside it.Any help...
View ArticleDetermine if Notifications Firing
I am now to Service Broker and SQL Notifications and am working on an application that needs SQL Notification. I am having problems with the application working intermittently depending on the...
View ArticleService Broker Messages
Hi,I've the below messages appearing in the sql error logs plenty of times. No idea what's the problem. Any insight ?spid25s The query notification dialog on conversation handle...
View ArticleEvent Notifications: insufficient system memory
I'm looking for a sanity check. Service broker and Event Notifications are new to me, so it is possible I'm either abusing or incorrectly using the technology. I'm experimenting with using Event...
View ArticleWhere is the query notification coming from?
When I execute a stored procedure and look at the execution plan, I see some "clustered index scans" where I'm not expecting them ... and they appear to be coming from "query_notification" objects.Is...
View ArticleMonitoring service broker queues through a .NET process
Is there a way for a .NET application to receive a notification when a service broker queue has been updated with a new message? I tried using SqlDependency on an SB queue but I got an "invalid" error...
View ArticleHow to handle sequence of my messages in this scenario?
Hi all,I am sending two messages from Service1 to Service2. The first message indicates DELETE command to delete a row, the second message has the information for INSERTing a new row. Actually it's the...
View ArticleEvent Notifications not firing - even with something very simple - ultimately...
So i am following the example here: http://www.sqlservercentral.com/articles/Event+Notifications/68831/When i get to this point there isn't anything returned from ErrorLogNotificationsQueue. This is...
View ArticleCould not obtain information about Windows NT group/user .......error code...
== I asked this question directly to Remus and wanted to share the response to all of those people using this forum ==We recently moved our database server from SQL Server 2000 to SQL Server 2005. All...
View Article