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
Collapse the table of content
Expand the table of content
Expand Minimize


Drops an existing service.

DROP SERVICE service_name
[ ; ]


The name of the service to drop. Server, database, and schema names cannot be specified.

Dropping a service deletes all messages for the service from the queue that the service uses. Service Broker sends an error to the remote side of any open conversations that use the service.

Permission for dropping a service defaults to the owner of the service, members of the db_ddladmin or db_owner fixed database roles, and members of the sysadmin fixed server role.

A. Dropping a service

This example drops the service //Adventure-Works.com/Expenses.

DROP SERVICE [//Adventure-Works.com/Expenses] ;
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2015 Microsoft