service-broker

Service broker with only domain account

天涯浪子 提交于 2019-12-22 00:04:23
问题 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? 回答1: 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

to MSMQ or not to MSMQ? (or SQL Table as the Queue)

不想你离开。 提交于 2019-12-20 10:53:13
问题 I've got a distributed system where there will be 1 SQL Server, 1-n processing servers, and 1-n data suppliers (hardware devices across the network). The data being supplied will require processing prior to going into the relational DB structure - performed by the processing servers (as windows services - .net code to parse the data, process it, and insert it into the relational structure.) To handle the potential load and not slow down the data suppliers, I want to implement a queue, but I'm

Service Broker — how to extract the rows from the XML message?

馋奶兔 提交于 2019-12-19 10:16:20
问题 Say I have the following situation (for demonstration). The simple table content is converted to an XML value and sent via Service Broker to another SQL server where the result of the SELECT is to be stored in the non-XML form (i.e. usual, simple database table). Let's try: CREATE TABLE tab (a int, b int, c int); GO INSERT INTO tab (a, b, c) VALUES (1, 11, 111); INSERT INTO tab (a, b, c) VALUES (2, 22, 222); INSERT INTO tab (a, b, c) VALUES (3, 33, 333); INSERT INTO tab (a, b, c) VALUES (4,

Why do I need two SQL Server Service Broker queues for a simple task?

一个人想着一个人 提交于 2019-12-18 13:38:35
问题 All examples I find on the web for using SQL Server Service Broker queues seem to have two queues. I don't understand why and every example seems to assume that this is so obvious as to be unnecessary to explain. Several things will write to my queue and a stored procedure will read from it and insert to database. Why do I need two queues? For example: http://www.techrepublic.com/article/use-service-broker-internal-activation-in-sql-server-2005/6156264# 回答1: Technically you can use one queue

I want my database (SQL) to notify or push updates to client application

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-17 22:36:22
问题 I was developing this application on VB.net 2010 and SQL 2008 . I wanted the clients to be notified for updates on the db, and the application used to check the db for changes in the specified minute using a timer, which really is not efficient. I read about query notification , sqldependency , service broker , but then I read something that said they might not be efficient if I have 100 clients and I'm using query notifications to push notifications to my application. Would someone help out

Microsoft Service Broker external activator perfomance

别等时光非礼了梦想. 提交于 2019-12-13 07:19:14
问题 How can I push Microsoft SSB External activator to consume more messages from my queue. I already set <Concurrency min="1" max="128" /> but still not getting enough TPS from this. Any help ? 来源: https://stackoverflow.com/questions/35804220/microsoft-service-broker-external-activator-perfomance

Simply add a message to a SQL Server Service Broker queue using T-SQL?

三世轮回 提交于 2019-12-13 04:26:08
问题 I created a queue thus: CREATE QUEUE log_line_queue WITH RETENTION = ON, --can decrease performance STATUS = ON, ACTIVATION ( MAX_QUEUE_READERS = 1, --number of concurrent instances of sp_insert_log_line PROCEDURE_NAME = sp_insert_log_line, EXECUTE AS OWNER ); What can I do quickly in SSMS to add an item to my queue using T-SQL? 回答1: In SSMS select required database in Object Explorer. Then find Service Broker of this database, right click on it and select 'New Service Broker Application...'

Externally activate non-.NET application from Service Broker

泪湿孤枕 提交于 2019-12-12 20:48:54
问题 Can you externally activate a non-.NET app like Java or Python as easily you can a .NET app from Service Broker? Are there any issues / concerns with doing this? 回答1: The external activation logic should apply in the same way. Once you have an sql server connection, everything is handled in t-sql and service broker objects. Event-Based Activation 来源: https://stackoverflow.com/questions/10163073/externally-activate-non-net-application-from-service-broker

Timeout Error - Sending mail through SQL Mail - Service Broker Queue

情到浓时终转凉″ 提交于 2019-12-12 14:02:53
问题 This is my first question! So I hope I provide enough information: We are attempting to send around 1000 emails by taking advantage of the SQL Mail Service Broker. We are relatively new to this, but have hit a wall with this problem: Some Background: We created a Profile, an Account and a ProfileAccount entries, and enable database mail. We then tested with a few emails and all worked fine. We then created a store procedure that we would call from our project to QUEUE all the emails using

Sql Dependency with Service Broker

▼魔方 西西 提交于 2019-12-12 06:19:41
问题 I have written a windows service for one of our local servers. This service works like a gem on my local machine, does what it's supposed to (ACCP to exchange db data), but I'm not overly familiar with dependencies. Is this an appropriate way to structure the program? string DBP3_US = DBP3_US; string PING_DEPENDENCY = "SELECT [SomeColumn] FROM [SomeTable];"; protected override void OnStart(string[] args) { SqlDependency.Start(DBP3_US); Thread Ping_US = new Thread(PingThread); Ping_US.Name =