无法连接到azure sql数据库

时间:2014-07-09 01:13:16

标签: azure-sql-database windows-server-2012-r2

我们有一个Azure Web Sql Web数据库

我们正在尝试连接到另一个vps runnning microsoft server 2012上的asp.net应用程序。 我已将相关的ip添加到azure SQL允许的IP中,并且我已在VPS上打开tcp 1433入站和出站。

config中的连接字符串格式是在运行本地数据库时成功在localhost上运行的

    <connectionStrings>
<add name="db_connection" connectionString="Data Source=my server name;  Initial Catalog=bidstreet;  user=mydbuser;  password=mypassword;"/>
</connectionStrings>

甚至在localhost(locahost ip也添加到azure允许的ip列表中)当我尝试使用天蓝色的细节重新出现时

{"A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)"}

我已经尝试过使用Azure控制台中的ado连接字符串,这只是通过一种合适的方式。

但是在工作室网站或SQL Server Management工作室中,我可以使用相同的设置进行连接和测试。

任何建议都非常感谢。

1 个答案:

答案 0 :(得分:0)

您是否可以验证数据源的格式为tcp:< server name >

相关问题