What is SQL Service Broker used for?

What is SQL Service Broker used for?

SQL Service Broker (SSB) is a powerful asynchronous queuing and messaging infrastructure available in all editions of SQL Server 2005. It provides tools to handle a wide variety of tasks, from simple workload queuing all the way to advanced message routing between remote servers.

How do I check if a SQL Service broker is enabled?

Resolution

  1. Check to see whether Service Broker is enabled: select name,is_broker_enabled from sys.databases where name= [YourDB]
  2. If Service Broker isn’t enabled, generate a new Service Broker: ALTER DATABASE [YourDB] SET NEW_BROKER; GO.
  3. Enable Service Broker on an existing database:

Why do we need service broker in SQL Server?

It also improves performance. For example, front-end databases supporting Web sites can record information and send process intensive tasks to queue in back-end databases. Service Broker ensures that all tasks are managed in the context of transactions to assure reliability and technical consistency.

Why do application developers need to use service broker?

Application developers who use Service Broker can distribute data workloads across several databases without programming complex communication and messaging internals. Service Broker reduces development and test work because Service Broker handles the communication paths in the context of a conversation.

Where is the reference documentation for service broker?

The reference documentation for Service Broker is included in the SQL Server documentation. This reference documentation includes the following sections: Data Definition Language (DDL) Statements (Transact-SQL) for CREATE, ALTER, and DROP statements

How to audit data changes in SQL Server?

Some data were updated incorrectly while some others were not updated at all, showing old or incorrect data to their users/customers/vendors etc… After going through their stored procedures, triggers, view, ETLs, SQL trace etc… I was able to track down and fix most of the data issues.