Removes a user-defined role from the database or converts a user-extended role to a regular user.
DROP ROLE [ FROM USER ] role_name [ WITH REVOKE ] [ WITH DROP OBJECTS ]
DROP ROLE FROM USER Joe
DROP ROLE Jack
DROP ROLE FROM USER Sam
WITH REVOKE
DROP ROLE Sales1
DROP ROLE Sales2 WITH REVOKE
DROP ROLE FROM USER Marketing1 WITH DROP OBJECTS
DROP ROLE Marketing1 WITH REVOKE WITH DROP OBJECTS
A user-defined role can be dropped from the database or converted back to a regular user at any time as long as all dependent roles left meet the minimum required number of administrative users with active passwords.
Include the FROM USER clause when dropping a user-extended role to convert it back to act as a regular user rather than remove it from the database. The user retains any login privileges, system privileges, and roles granted to the user-extended role and becomes the owner of any objects owned by the user-extended role. Any users granted to the user-extended are immediately revoked.
ANSI SQL – Compliance level: Transact-SQL extension.