2012-09-28 130 views
1

每当我尝试连接到Azure上的我的SQL服务器,我不断收到SQL错误258SQL Server Management Studio中连接2012天青到SQL

Cannot connect to tcp:xxxxxxxxxx.database.windows.net,1433.

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)

我的设置和ODBC连接,并且似乎帮助它建立了联系,但我很困惑它为什么没有连接。我也将我的IP地址列为Azure中允许的IP地址,但仍然没有运气。这里是我试图用SSMS 2012登录:

Server Type: Database Engine Server Name: tcp:xxxxxxxxxx.database.windows.net,1433 Authentication: SQL Server Authentication Login: [email protected] Password: xxxxxxxxxx

Connect to database: xxxxxxx_db Connection time-out: 30 Encrypt: True

我的连接字符串: Server=tcp:xxxxxxxxxx.database.windows.net,1433;Database=database_db;User [email protected];Password={your_password_here};Trusted_Connection=False;Encrypt=True;Connection Timeout=30;

你的帮助是非常感谢,谢谢!

+0

你能具体谈谈你如何试图使用SQL Management Studio中ODBC连接到从变化?你根本不需要使用ODBC。只需使用管理凭据连接到您的SQL Azure服务器,并使用与本地SQL服务器相同的连接对话框即可。只是不要尝试使用:1433指定端口,只需输入主机名即可。 –

回答

0

连接字符串似乎什么在这里显示http://www.connectionstrings.com/sql-azure

Server=tcp:[serverName].database.windows.net;Database=myDataBase; 
User ID=[LoginForDb]@[serverName];Password=myPassword;Trusted_Connection=False;Encrypt=True; 
+0

我在问题部分添加了我的字符串,但除服务器末端的端口号外没有看到任何区别。无论如何,我再次尝试,只是为了确定,而没有。感谢您的帮助,但还有其他想法? – MikeTrottman

+0

那么,你的字符串包括端口和超时值。您可以尝试增加超时值,或者省略它。除此之外,我不确定。我认为1433是Azure使用的唯一端口(但不是正面的)。因此,指定它是多余的。 – gangreen

相关问题