Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

How to: Deactivate Service Broker Message Delivery in Databases (Transact-SQL)

When message delivery is not active, messages remain in the transmission queue. To determine if Service Broker is active for a database, check the is_broker_enabled column of the sys.databases catalog view.

ms166035.security(en-US,SQL.90).gifSecurity Note:
Deactivating Service Broker prevents messages from being sent from or delivered to the database. However, this does not prevent messages from arriving in the instance. To prevent messages from arriving in the instance, you must remove or stop the Service Broker endpoint.

  1. Alter the database to set the DISABLE_BROKER option.

USE master ;
GO

ALTER DATABASE AdventureWorks SET DISABLE_BROKER ;
GO

Community Additions

ADD
Show:
© 2015 Microsoft