SQL Server principal “dbo” does not exist,

后端 未结 11 1114
醉话见心
醉话见心 2020-12-22 16:05

I am getting the following error

Cannot execute as the database principal because the principal \"dbo\" 
does not exist, this type of principal cannot be imp         


        
11条回答
  •  别那么骄傲
    2020-12-22 16:23

    As the message said, you should set permission as owner to your user. So you can use following:

    ALTER AUTHORIZATION 
    ON DATABASE::[YourDBName]
    TO [UserLogin];
    

    Hope helpful! Leave comment if it's ok for you.

提交回复
热议问题