Removes the alias login ID identity that was established by sp_addalias.
sp_dropalias login_id
where
Executing the sp_dropalias system stored procedure deletes an alternate suid mapping for a user from the sysalternates table. When a user's alias is dropped, the user no longer can access the database for which the alias was created.
Assuming that Victoria has an alias (for example, as the database owner) in the current database, this procedure drops her alias from the database.
sp_dropalias Victoria
Only the database owner can use this procedure.
sysalternates
sp_addalias | sp_dropuser |
sp_adduser | sp_helpuser |
sp_changedbowner | USE |
sp_droplogin |