service-broker

SQL Server 2014 Service Broker does not activate the procedure that receives messages from the queue

狂风中的少年 提交于 2019-12-08 03:08:00
问题 The situation is closely related to SQL Service Broker - communication scenario - migration from SQL 2008 R2 to SQL 2014 and to SQL Service Broker -- one central SQL and more satelite SQL... beginner wants to understand details. After migration from SQL Server 2008 R2 Standard Ed. to SQL Server 2014 Standard Ed., the same code does not work. The firewall was set to allow the communication. The sys.transmission_queue (on both sender and receiver servers) keeps empty, and the GenericQueue (my

Service Broker and WCF interoperability

你说的曾经没有我的故事 提交于 2019-12-07 06:29:51
问题 Does SQL Server Service Broker have an ability to communicate with a WCF service? I wanna create a Service Broker service which will send some xml message to WCF service for processing. Of course SQL Server instance and WCF service are deployed on different machines. Is it possible to somehow configure SB service to achieve such goal? 回答1: No. SSB can only communicate with another SSB instance. There is a WCF SSB channel but that is using SSB as a transport channel to a WCF service, the WCF

MSMQ vs. SQL Server Service Broker

馋奶兔 提交于 2019-12-07 03:35:36
问题 I have an application that consists of three parts: a front-end web shop for end-users and business partners an order-management system to handle those orders a technical database system to handle all the technical details of those products and services ordered Today, those systems (which are on separate servers and being developed by separate teams) interoperate using WCF webservices. This setup up works fine - as long as all servers are up. Which they're not - not always, anyway. So I've

Should Conversation Handles be the Same at Each End of a Service Broker?

守給你的承諾、 提交于 2019-12-06 11:28:41
I'm new to Service Broker. We've set up a development system that appears to be working well. One strange thing I've noticed is that the conversation handles in the audit tables at each end of the Service Broker are different for the same message. I had assumed the same conversation handle would be used by the initiator and target ends so I'm wondering if we've got something configured wrong. Is it normal for a single message to have different conversation handles at each end of a conversation? Remus Rusanu There is a conversation_id , which is the same at both endpoints. And there is

SQL Server 2014 Service Broker does not activate the procedure that receives messages from the queue

落花浮王杯 提交于 2019-12-06 09:20:01
The situation is closely related to SQL Service Broker - communication scenario - migration from SQL 2008 R2 to SQL 2014 and to SQL Service Broker -- one central SQL and more satelite SQL... beginner wants to understand details . After migration from SQL Server 2008 R2 Standard Ed. to SQL Server 2014 Standard Ed., the same code does not work. The firewall was set to allow the communication. The sys.transmission_queue (on both sender and receiver servers) keeps empty, and the GenericQueue (my identifier for the queue) receives the messages. However, the procedure attached by (to the receiving

Troubleshooting Service Broker: initiator database stuck CONVERSING/NOTIFIED

馋奶兔 提交于 2019-12-06 08:53:44
We are developing an application that will use service broker to transfer messages from one database to another. SourceDB is used by an existing application from which we are siphoning off some data. TargetDB is used only by this application and processes/distributes the data we need. We are only using one type of contract and both DBs are on the same server. We have set up identical message types and contracts on both, and respective initiator and target queue/service. On both databases: ENABLE_BROKER is set TRUSTWORTHY is set Have a unique service_broker_guid Have sa as db owner, with all

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

强颜欢笑 提交于 2019-12-06 02:47:24
问题 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

SQL Service Broker: Collecting data — plug-in scenario analysis

大兔子大兔子 提交于 2019-12-05 20:29:00
( 2nd Update from 2012/12/06 -- new protocol, a sligtly different view) The question is whether the solution below seems reasonable for you, or whether there is any flaw that I did not notice (being quite new to SQL Server Service Broker)... I would like to continue in analysis of the problem presented in the SQL Service Broker: Collecting data from distributed sources . I would like to focus on the problem of protocol to be used when collecting data from the satellite SQL servers. The usage of the SQL Server Service Broker is a must -- it is dictated also by other reasons not presented here.

Service broker with only domain account

孤街浪徒 提交于 2019-12-04 19:21:41
I am new to MS Sql's service broker. I've examined a couple of tutorials. But I could not find an answer. I have distributed servers, but luckily all of them are under the same domain. Is it possible to accomplish a structure without using any certificate? Remus Rusanu Yes. Do no use dialog security. Make sure all your BEGIN DIALOG statements use ENCRYPTION = OFF clause: BEGIN DIALOG @handle FROM SERVICE @from_service TO SERVICE @to_service ON CONTRACT @contract WITH ENCRYPTION = OFF; Grant SEND permission to [public] on each destinations service: GRANT SEND ON SERVICE::<servicename> TO

SqlDependency subscription not dropped from dm_qn_subscriptions on shutdown

点点圈 提交于 2019-12-04 14:38:38
问题 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