dropalias

The dropalias option is used to drop an alias representing a database name.

Syntax

sp_webservices 'dropalias' alias_name

Parameters

Example

Drops the marketing_alias alias:

sp_webservices 'dropalias', marketing_alias

Usage

An alias cannot be dropped if it is being referenced by a deployed user-defined Web service. To drop the alias, you must first undeploy the user-defined Web service that references the alias.