SEND ON CONVERSATION Appears to Block
HiI am sending messages to a remote server using SSB. The messages are sometimes generated at the rate of, say, 10 per second. For each message, my application creates a separate thread, and calls a...
View ArticleDifferences in XP_CmdShell executions through Service Broker between 2005 and R2
We are upgrading our system from SQL Server 2005 to R2. We have small module which executes XP_CmdShell through Service Broker (using the Procedure_Name option in the Queue deffinition). In 2005 it...
View ArticleService Broker queue getting disabled automatically
Hello,I have created one stored procedure which accepts one input parameter. I want to call it asynchronously using Service Broker.I have implemented all code with the help of below link:...
View ArticleDelay message processing until after a given datetime?
Using Service Broker, is it possible to delay a given message from being processed until some future date/time has gone by?scott
View ArticleHow to handle EndDialog message when using Asynchronous Trigger Pattern?
I have Service A which sends a message to Service B when a update/delete/insert trigger fires. Service B dequeing logic looks like:declare @messagebody xml declare @messagetype nvarchar(256) declare...
View ArticleMonitor open conversations?
Is there a good SQL view for monitoring open service broker conversations ?scott
View ArticleReceive message by service name?
Is it possible to receive the next available message for a given service name?Is it possible to peek at a message but not de-queue it if not applicable to the current service and move on to the next...
View ArticleSafe way to terminate a blocking RECEIVE?
I can configure my windows service to call TSQL Receive with an infinite timeout (using SqlCommand / ADO.NET). Is there a recommended / safe way of breaking out of a RECEIVE that is waiting...
View Articleclosed endpoints in sys.conversation_endpoints?
Do closed endpoints in sys.conversation_endpoints ever go away? I have several endpoints with a CLOSED state_desc value but they still display in the view several minutes after having been...
View ArticleThe Database Mirroring endpoint is in disabled or stopped state.
HelloI'm trying to configure 2 service broker instances to communicate over LAN network.Right now both sql instances is able to receive messages locally when sent locally.But as soon as I create an...
View ArticleQuestion on Internal Activation Stored Procedure Security Context
CLR function has the following few lines which is invoked from Internal Activation Stored Procedure:SqlCommand command = Connection.CreateCommand();command.CommandText = "CREATE ASSEMBLY " + "\"" +...
View ArticleBulk purge queue?
Short of dropping the queue and recreating, is there a good way to mass purge all messages for a given queue?
View ArticleBroker Error : type="subscribe" source="statement" info="invalid"
i ran these on the databaseuse DBGRANT CREATE PROCEDURE TO USERGRANT CREATE QUEUE TO USERGRANT CREATE SERVICE TO USER Use DBGRANT SUBSCRIBE QUERY NOTIFICATIONS TO USERUse DBGRANT RECEIVE ON...
View ArticleHandling end dialog message in async trigger scenario
I have ServiceA which send message to Service B. Service A lives in a sql trigger and doesn't wait for a response from Service B. Service B pulls the message off the queue and closes the dialogue....
View ArticleSql Dependency onchange event not firing every time c#
i have implemented sql dependency in windows service. when data will be changed in table then onchange event will fire and from there i am invoking a web service.i will share my full code. i tested...
View ArticleCritical: The query notification dialog on conversation handle Sqlserver...
Hi Experts, Basically i am from oracle apps background but taking care of adhoc-queries of sqlserver. i have see the following errors in sqlserver logs. Can you please guide how to trouble shoot it....
View ArticleService Broker Disabled but it comes back showing its Enabled.
Used to disable SERVICE BROKER in single user mode :ALTER DATABASE [Database_name] SET DISABLE_BROKER;SELECT is_broker_enabled FROM sys.databases WHERE name = 'Database_name';when i checked the...
View ArticleInsert a record using sql broker service
Hi Guys,I need some samples to use sql broker service for creation of a record in other database in order to reduce the delay in creating number of records at the same time.
View ArticleCannot find the remote service GUID it does not exist
Hello, I have troublesome problem with service broker. I move a lot of databases from one server to another servers (by backup and restore) but always have problem with databases where service broker...
View ArticleSqlDependency class throws "The given key was not present in the dictionary."...
Today I ran into an issue when using the .Net SqlDependency class when calling SqlDependency.Start(connectionName, queueName). The class would throw the exception "KeyNotFound" - "The given key was not...
View Article