drop service

The drop service command removes a user-defined Web service from the current database. Both the metadata and the corresponding stored procedure are removed.

NoteYou must undeploy a user-defined Web service before you can drop it. For details on the undeploy option for sp_webservices, see “Using sp_webservices with user-defined Web services”.

Syntax

drop service service-name

Parameters

Example

This example drops the user-defined Web service named sp_who_service:

drop service sp_who_service