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 contract from a database.

DROP CONTRACT contract_name 
[ ; ]


Is the name of the contract to drop. Server, database, and schema names cannot be specified.

You cannot drop a contract if any services refer to the contract.

When you drop a contract, Service Broker ends any existing conversations that use the contract with an error.

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

A. Dropping a contract

This example removes the contract //Adventure-Works.com/Expenses/ExpenseSubmission from the database.

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

Community Additions

© 2015 Microsoft