SELECT name FROM sys.schemas WHERE principal_id = USER_ID('theUserName')
Then you can assign the schema(s) to dbo to release the user from owning them.
ALTER AUTHORIZATION ON SCHEMA::SchemaName TO dbo
|
The database principal owns a schema in the database, and cannot be dropped
No comments:
Post a Comment