addalias

The add alias option is used to create an alias representing a database name.

Syntax

sp_webservices 'addalias' alias_name , database_name

Parameters

Examples

Adds marketing_alias as the alias name for database marketing_db:

sp_webservices 'addalias', marketing_alias, marketing_db

Usage

An alias provides greater control in specifying the portion of the URL representing the database name. Used with the userpath option of the create service command, an alias provides complete control over the URL used to access a user-defined Web service.