2016-01-13 174 views
4

当我尝试连接到我的免费试用帐户的Azsurdb时,我正面临以下错误。任何人都可以帮助我如何在我的免费试用帐户中设置规则吗?我没有看到任何设置的选项。带IP地址的客户端不允许访问服务器Azuredb

azsurCannot open server 'ccaausprddb001' requested by the login. Client with 
IP address '125.16.236.150' is not allowed to access the server. To enable 
access, use the Windows Azure Management Portal or run sp_set_firewall_rule on 
the master database to create a firewall rule for this IP address or address 
range. It may take up to five minutes for this change to take effect. 
ClientConnectionId:f1ce6d56-c321-4458-a8dc-507f40e24108 
com.microsoft.sqlserver.jdbc.SQLServerException: Cannot open server 'ccaausprddb001' requested by the login. Client with IP address '125.16.236.150' is not allowed to access the server. To enable access, use the Windows Azure Management Portal or run sp_set_firewall_rule on the master database to create a firewall rule for this IP address or address range. It may take up to five minutes for this change to take effect. 

回答

8

使用portal.azure.com(推荐),选择您的SQL Server(托管您的数据库),然后单击显示防火墙设置。选择添加客户端IP,然后按保存。

使用manage.windowsazure.com, 从左侧列表中选择SQL数据库。然后从服务器选项卡中,转到托管数据库的服务器。转到配置选项卡。根据您当前的客户端IP地址选择添加到允许的IP地址箭头。

5

这可以通过配置SQL数据库所在的Azure SQL Server的防火墙来解决。我正在使用新的Microsoft Azure门户。请看下面的截图, Selecting the SQL server from the listed resources 请记住,您需要配置防火墙并管理SQL Server中的IP地址,而不是SQL数据库。

一旦你选择了SQL Server中,

  • 点击的设置 - >防火墙
  • 你会被要求添加新的规则。
  • 添加一个名称并输入将访问数据库的IP地址(或范围) 。注意:Azure会自动检测您的当前IP。

Follow these steps

等待5分钟,你准备好去。我希望这有帮助。