Delete a User from SQL
To delete a user at the database level:
- Open Server Management Studio (SSMS).
The Connect to Server window displays.
- Enter the following Server details:
- Server type
- Server name
- Select the Authentication method. If required, enter your login credentials.
- Enter the following Connection Security details:
- Select the Encryption type.
- Select whether to Trust server certificate.
- If Strict is selected as the Encryption type, enter the Host name in certificate.
- Click Connect.
The nodes for the database display in the Object Explorer window.
- Expand the Databases node.
- Select and expand the database you want to delete the user from.
- Expand the Security folder in the selected database's node.
- Expand the Users folder.
- Right-click on the user you want to delete and select Delete from the menu.
The Delete Object window displays.
- Select the Object to be deleted.
- Click OK.
To delete a user at the SQL server level:
Note: Deleting a user with this method removes their access to the SQL Server and the specific database.
- Open Server Management Studio (SSMS).
The Connect to Server window displays.
- Enter the following Server details:
- Server type
- Server name
- Select the Authentication method. If required, enter your login credentials.
- Enter the following Connection Security details:
- Select the Encryption type.
- Select whether to Trust server certificate.
- If Strict is selected as the Encryption type, enter the Host name in certificate.
- Click Connect.
The nodes for the database display in the Object Explorer window.
- Expand the Security folder.
- Expand the Logins folder.
- Right-click on the user you want to delete and select Delete from the menu.
The Delete Object window displays.
- Select the Object to be deleted.
- Click OK.