In this post explains how to use the SQL Server DROP USER statement with syntax and examples.
The DROP USER statement is used to remove a user from the SQL Server database.
The syntax for the DROP USER statement in SQL Server (Transact-SQL) is:
The name of the user to remove from the SQL Server database.
Let's look at how to drop a user using the DROP USER statement in SQL Server.
For example:
This DROP USER example would drop the user called AODBA. This DROP USER statement will only run if AODBA does not own any objects in the SQL Server database.