Managing Service Broker

 

In SMO, the Service Broker objects are found in the Microsoft.SqlServer.Management.Smo.Broker namespace, which requires a reference to the Microsoft.SqlServer.Smo.dll. A reference to the Microsoft.SqlServer.ServiceBrokerEnum.dll is also required for supporting class information.

SMO provides a set of Service Broker objects that permit programmatic management (DDL) of the Service Broker implementation. This includes defining the message types, contracts, queues, and services. Because SMO is a management tool that is not intended for data manipulation, sending and receiving Service Broker messages is not supported by SMO.

In SMO, the P:Microsoft.SqlServer.Management.Smo.Database.ServiceBroker object is the top-level class under which all the Service Broker functionality resides. A Service Broker implementation is required for each database that is participating in the distributed messaging application. Therefore, the T:Microsoft.SqlServer.Management.Smo.Broker.ServiceBroker object is a child of the T:Microsoft.SqlServer.Management.Smo.Database object.

The T:Microsoft.SqlServer.Management.Smo.Broker.ServiceBroker object contains collections of the following objects that are used to define the Service Broker implementation:

N:Microsoft.SqlServer.Management.Smo.Broker
SQL Server Service Broker

Show: