[英]Error occurs when I deploy SQL Server database to Azure SQL database
I have a SQL Server database, and I want to deploy it to an Azure SQL database.我有一个SQL Server数据库,我想部署到一个Azure SQL数据库。 It doesn't work - the SQL Server database import and update processes fails:
它不起作用 - SQL 服务器数据库导入和更新过程失败:
How do I solve the error?我该如何解决错误?
According to the error statement above, the login that is mentioned in the message is already mapped to a user in that database.根据上面的错误声明,消息中提到的登录名已经映射到该数据库中的用户。 Or, to put it another way, a different database user is utilizing this login.
或者,换句话说,不同的数据库用户正在使用此登录。
run the below script to identify the user which is alredy using the mentioned login in your database运行以下脚本以识别正在使用数据库中提到的登录名的用户
SELECT
User.name as UserName
FROM sys.sysusers USR
INNER JOIN sys.syslogins LGN
ON LGN.sid = USR.sid
where LGN.name = '<Username in the Error Text>'
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.