[英]Azure SQL Server - Allow Role Access to Database via SSMS
I want to allow developers to connect to a specific databases on our Azure SQL Server. 我想允许开发人员连接到Azure SQL Server上的特定数据库。 I've read all the Microsoft documentation I can find and a bunch of useful blog posts but can't find an answer to this question.
我已经阅读了所有可以找到的Microsoft文档以及许多有用的博客文章,但是找不到该问题的答案。
I've created a user and added the user to the db_owner role for the database is question. 我已经创建了一个用户,并将该用户添加到数据库问题的db_owner角色中。 In the SSMS logon I tried both these logon but both fail:
在SSMS登录中,我尝试了这两种登录,但均失败了:
<servername>.<databasename>.net,1433
<databasename>.database.net,1433
UPDATE: I suspect the correct answer will be: " Don't do that ." 更新:我怀疑正确的答案将是:“ 不要那样做 。” In other words, the developers can do anything they need to do from within Visual Studio and don't need access via SSMS.
换句话说,开发人员可以在Visual Studio中完成他们需要做的任何事情,并且不需要通过SSMS进行访问。
You need to make sure the firewall in the Azure Portal allows connection from the developers' machine IP Address. 您需要确保Azure门户中的防火墙允许来自开发人员计算机IP地址的连接。 If the firewall is not the issue, and you can login with the admin account just fine, then check this answer from a previous post with a similar issue;
如果防火墙不是问题所在,那么您可以使用管理员帐户登录就可以了, 然后从前一个类似问题的帖子中查看此答案 ; you need to create the account in Master or specify the database name you are connecting to in the SSMS login screen.
您需要在Master中创建帐户或在SSMS登录屏幕中指定要连接的数据库名称。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.