Connecting to remote SQL Server 2008 from Windows Azure

前端 未结 2 1211
夕颜
夕颜 2021-01-06 23:47

I am trying to connect to a SQL Server 2008 instance from a Windows Azure worker role (it\'s not SQL Azure, but a remotely hosted SQL Server 2008 Standard Edition), but I ge

相关标签:
2条回答
  • 2021-01-07 00:33

    I've noticed some issues with the SQL Server Resolution Protocol (or the SQL Server Browser) from Azure worker roles when connecting to external non-Azure SQL Server instances running on ports other than 1433. In these cases it can help to explicitly specify the TCP port of the instance in the connection string:

    Data Source={domain/ip},{port};
    Network Library=DBMSSOCN;
    Initial Catalog={dbname};
    User ID={user};
    Password={pw}
    

    See also Connect from Azure to an SQL Server Named Instance

    0 讨论(0)
  • 2021-01-07 00:43

    Can you control your Azure instance through Remote Desktop?

    If you can, log on, and try:

    telnet yoursqlserverhostname 1433
    

    If this blocks, you know that the network is not configured correctly. Usually a firewall issue, on either host or the network in between.

    0 讨论(0)
提交回复
热议问题