Change Login user when login user is dbo

FaigNasirli 101 Reputation points
2021-02-04T07:40:34.653+00:00

I have a problem with login users like as below picture . I want to change user of domain login on MessageSender and FAQ database from [dbo] to [Anyuser] . I get error when use sp_change_users_login procedure for change login's user . Error is : Terminating this procedure. 'dbo' is a forbidden value for the login name parameter in this procedure.

Quession is :
How I can change login (Domain\Login) user from [dbo] to [Domain\Login] ?

Azure SQL Database
Developer technologies Transact-SQL
SQL Server Other
0 comments No comments
{count} votes

Accepted answer
  1. FaigNasirli 101 Reputation points
    2021-02-04T07:58:25.43+00:00

    I use this query : and solve the problem

    ALTER AUTHORIZATION ON DATABASE::[MessageSender] TO [sa];

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.