Quantcast
Channel: SQL Service Broker forum
Browsing all 461 articles
Browse latest View live

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 Article


Differences 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 Article


Service 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 Article

Delay 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 Article

How 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 Article


Monitor open conversations?

Is there a good SQL view for monitoring open service broker conversations ?scott

View Article

Receive 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 Article

Safe 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 Article


closed 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 Article


The 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 Article

Question 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 Article

Bulk purge queue?

Short of dropping the queue and recreating, is there a good way to mass purge all messages for a given queue?

View Article

Broker 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 Article


Handling 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 Article

Sql 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 Article


Critical: 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 Article

Service 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 Article


Insert 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 Article

Image may be NSFW.
Clik here to view.

Cannot 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 Article

SqlDependency 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
Browsing all 461 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>