Site icon Database Tutorials

The database principal owns a schema in the database, and cannot be dropped.

 

ERROR:

“The database principal owns a schema in the database, and cannot be dropped. (Microsoft SQL Server, Error: 15138)”

EXPLANATION:

You may encounter an error message when you try to delete a database user.

SOLUTION:

Before deleting a database user, you must delete the schema that this user owns.

You can access the schema from SSMS by:

Object Explorer -> Server Name-> Databases -> Your_Database-> Security -> Schemas

With TSQL:

Exit mobile version