service-broker

Service Broker messages start to get hung up after about a day

爱⌒轻易说出口 提交于 2019-12-04 07:36:00
I have an application that is using the Service Broker is SQL 2008. About once a day the database's performance starts take a noticeable hit and I have determined that this is because of the Service Broker. If I hard reset all broker connections using the following commands: ALTER DATABASE [RegencyEnterprise] SET OFFLINE WITH ROLLBACK IMMEDIATE ALTER DATABASE [RegencyEnterprise] SET ONLINE Then the performance returns to normal until about the next day. I have also noticed that when performance is poor, running the following query returns a large number (around 1000 currently) of conversations

Integrating SQL Service Broker and NServiceBus

北战南征 提交于 2019-12-04 04:59:12
问题 My requirement is that I have "items" with different states. I need to do all kinds of different things based on the states of these items (send emails, store files, update internal applications, etc). The problem is that the application that updates these statuses is third party, so I can't update it; furthering the difficulty is the fact that only half of the organization is using this system and the other are using it's future replacement. I do have open access to both of the databases

No enabled application monitor is on behalf of queue XYZ

自作多情 提交于 2019-12-04 02:01:25
问题 I created a console application which will be used by "Service Broker External Activator" service. The configuration file in "C:\Program Files\Service Broker\External Activator\Config" has been changed, but it writes an exception to log file as bellow EXCEPTION ERROR = 32, No enabled application monitor is on behalf of queue Here is my configuration <NotificationServiceList> <NotificationService name="ExternalActivatorService" id="100" enabled="true"> <Description>My test notification service

SqlDependency subscription not dropped from dm_qn_subscriptions on shutdown

雨燕双飞 提交于 2019-12-03 08:35:14
My SqlDependency works fine, and the Broker Queue and Service get dropped properly when the application exists (I do execute SqlDependency.Stop(...) as recommended before terminating the process), yet I notice that the notification subscription created by the SqlDependency lives on in the table "sys.dm_qn_subscriptions" after the application shuts down. If I later (post-app shutdown) execute the condition that ought to make this subscription fire, it does seem to fire, as SQL Server logs an Info message in Event Viewer to the effect that: The query notification dialog on conversation handle '

Sql Server Service Broker: How to structure Conversations for a simple queue scenario?

╄→гoц情女王★ 提交于 2019-12-03 05:55:08
问题 I'm a Sql Server Service Broker novice and I'm trying to grasp the best way to set Service Broker up for a (seemingly) simple use case: I want to create a simple work queue, where one application drops work items into the queue, and separate application picks up work items from that queue and processes them. There is no need for the first application to get status messages back from the second. I want the queue to live in a single Sql Server instance. What most confuses me is how

Can you/should you use SQL Server Service Broker with .NET applications?

自古美人都是妖i 提交于 2019-12-03 04:58:08
问题 I have many operations in the database that need to trigger application code. Currently I am using database polling, but I hear that SQL Server Service Broker can give me MSMQ-like functionality. Can I listen to SQL Server Service Broker queues from .NET applications running on a different machine? If so, should I do it? If not, what would you recommend? 回答1: To answer your questions: Can I listen to SQL Server Service Broker queues from .NET applications running on a different machine? Yes.

Sql Server Service Broker: How to structure Conversations for a simple queue scenario?

旧城冷巷雨未停 提交于 2019-12-02 19:18:15
I'm a Sql Server Service Broker novice and I'm trying to grasp the best way to set Service Broker up for a (seemingly) simple use case: I want to create a simple work queue, where one application drops work items into the queue, and separate application picks up work items from that queue and processes them. There is no need for the first application to get status messages back from the second. I want the queue to live in a single Sql Server instance. What most confuses me is how conversations/dialogs relate to this situation. I know you can only send/receive messages in the context of a

Can you/should you use SQL Server Service Broker with .NET applications?

不羁的心 提交于 2019-12-02 18:15:43
I have many operations in the database that need to trigger application code. Currently I am using database polling, but I hear that SQL Server Service Broker can give me MSMQ-like functionality. Can I listen to SQL Server Service Broker queues from .NET applications running on a different machine? If so, should I do it? If not, what would you recommend? RickNZ To answer your questions: Can I listen to SQL Server Service Broker queues from .NET applications running on a different machine? Yes. If so, should I do it? If not, what would you recommend? You might consider using SqlDependency . It

SQL Service Broker - communication scenario - migration from SQL 2008 R2 to SQL 2014

大憨熊 提交于 2019-12-02 07:44:44
问题 Summary: Is there anything new in SQL Server 2014 (versus 2008 R2) that does not allow the following scenario? Can the same approach be transfered to the new server? The application uses SQL Service Broker to collect data from satellite SQL Express machines (technology computers, now two, soon 4, and possibly more) to the central SQL Server with SQL Server Standard edition. It is based on simplified security settings without the need to exchange certificates. I was asked to migrate the

Using Service Broker with Sql Server Express 2008

≯℡__Kan透↙ 提交于 2019-12-02 01:00:24
问题 Is it possible to use external activation on sql express without going thru sql enterprise/standard? I would like to send a message to sql express service broker, then have it notify my external application service running on the same box, in order to kick off a console app to pickup the message and process it. I do this already successfully from a remote Sql Enterprise db. But now I need everything self contained on one box with Sql express, without using the remote Sql Enterprise. However