sp_dropalias

Description

Removes the alias user name identity established with sp_addalias.

Syntax

sp_dropalias loginame

Parameters

loginame

is the name (in master.dbo.syslogins) of the user who was aliased to another user.

Examples

Example 1

Assuming that “victoria” was aliased (for example, to the Database Owner) in the current database, this statement drops “victoria” as an aliased user from the database:

sp_dropalias victoria

Usage

Permissions

Only the Database Owner or a System Administrator can execute sp_dropalias.

See also

System procedures sp_addalias, sp_adduser, sp_droplogin, sp_dropuser, sp_helpuser