Dropping aliases

Use sp_dropalias to drop the mapping of an alternate suid to a user ID. Doing this deletes the relevant row from sysalternates. The syntax is the following, where loginame is the name of the user specified by loginame when the name was mapped with sp_addalias:

sp_dropalias loginame

After a user’s alias is dropped, the user no longer has access to the database.

You cannot drop an alias if the aliased login created any objects or thresholds. Before using sp_dropalias to remove an alias that has performed these actions, remove the objects or procedures. If you still need them after dropping the alias, re-create them with a different owner.