Search code examples
sql-serverservice-broker

SQL Server with Service Broker


When I do something such as insert, update in SQL Server, and I have a Service Broker queue. I just know do SEND to send the message to the queue.

Q: can the message send to queue automatically? Thanks.


Solution

  • No, there is no built-in way of sending messages in response to changes to a table. You would have to wire this up yourself using triggers or forcing all your table changes to go via stored procedures.