我无法使用 SQL Management Studio 2012 远程连接到我的 SQL Azure 数据库实例。我的本地 IP 存在防火墙异常。我可以使用 Azure 帐户中基于浏览器的管理链接成功连接并管理数据库。
我似乎无法通过 SSMS 或其他任何东西(如 VS2012)连接到数据库。
以下是我在 SSMS 中的连接格式:
Server Name: myservername.database.windows.net
Authentication: SQL Server Authentication
Login: myusername@myservername
Password: my-password
Connect to: (i've tried) "master", mydatabasename, <default>
Encryption: TRUE
我再次确认,我的 Azure 帐户的服务器实例上的本地 IP 地址的防火墙规则处于事件状态。
当我尝试连接时,收到此错误:
A connection was successfully established with the server, but then an error occurred during the pre-login handshake. (provider: SSL Provider, error: 0 - the wait operation timed out.) (Microsoft SQL Server, Error: 258)
在搜索 258 错误时,我没有得到很多与 SQL Azure 相关的结果。我感谢任何帮助。
最佳答案
如果可以在两个端点之间建立安全网络并且一台计算机启动安全通道,则由于计算机内的某些配置而生成错误 258。这个问题可能是特定于机器的,而不是特定于 SQL 的,这就是为什么您没有找到这方面的任何资源。
您能否尝试按照以下故障排除指南中所述使用 SQLCMD,看看这是否可以在同一台计算机上隔离 SSMS 特定问题: http://social.technet.microsoft.com/wiki/contents/articles/1719.windows-azure-sql-database-connectivity-troubleshooting-guide.aspx
如果您捕获并分析网络数据包流量,您也许能够确定连接错误的根本原因。
关于sql - 无法从 SSMS 2012 远程连接到 SQL Azure,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12443789/