简体   繁体   English

Azure SQL Server-允许角色通过SSMS访问数据库

[英]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.

相关问题 当您无法通过 SSMS 访问时,如何对 Azure SQL Server DB 进行结构更改? - How do you make structural changes to Azure SQL Server DBs when you don't have access via SSMS? Microsoft SQL Server Management Studio SSMS 2012中的SQL Azure数据库缺少数据库图表节点? - Missing Database Diagrams node for SQL Azure database in Microsoft SQL Server Management Studio SSMS 2012? 使用SSMS将CSV导入SQL Azure数据库 - Import CSV into SQL Azure Database using SSMS 无法使用SSMS连接Azure SQL数据库 - Not able to connect Azure SQL Database using SSMS SSMS将服务器连接到Azure数据库 - SSMS Linked Server Connection to Azure Database 尝试通过代理使用 SSMS 访问云 SQL 上的 SQL 服务器实例时如何修复连接错误 - How to fix connectex error when trying to access SQL Server instance on Cloud SQL using SSMS via Proxy 通过应用程序角色在对SQL Server的访问中创建链接表 - Create linked tables in Access to SQL server via application role 通过 SSMS 在 Azure SQL 数据库上的 Restore.bak:无法连接到服务器 ***。 用户登录失败*** - Restore .bak on Azure SQL database through SSMS: Failed to connect to Server ***. Login Failed for user *** 通过SMS上的Rstudio或R的SQL Server 2017 ODBC仅连接到主数据库 - SQL Server 2017 ODBC via Rstudio or R on SSMS gets connected only to master database 具有SSMS的密码保护的数据库SQL Server - Password protected database SQL Server with SSMS
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM