Hi,
We are using SQL Serve 2019 and accidentally granted db_owner to a newly created domain user. We are not aware until we find that he can full access right to the database instead of read only.
Then we dropped that Login. However, it seems that it is not successful as we get "Drop member failed for DatabaseRole 'db_owner'. (Microsoft.SqlServer.Smo)".
We tried to change database owner to "sa" but we get the following error.
Set owner failed for Database 'FinanceProd'. (Microsoft.SqlServer.Smo)
We get similar error when we try to change dbo
EXEC sp_changedbowner 'Domain\Administrator';
Is there any suggestion ?
Thanks a lot