Whenever I try to connect to my SQL server on Azure, I keep getting SQL error 258.
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)
I setup and ODBC connection and that seemed to help it establish a connection but I am perplexed to why it is not connecting. I also have my IP address listed in Azure as an allowed IP Address, but still no luck. Here is what I am trying to log in with using SSMS 2012:
Server Type: Database Engine Server Name: tcp:xxxxxxxxxx.database.windows.net,1433 Authentication: SQL Server Authentication Login: username@xxxxxxxxxx Password: xxxxxxxxxx
Connect to database: xxxxxxx_db Connection time-out: 30 Encrypt: True
My Connection String: Server=tcp:xxxxxxxxxx.database.windows.net,1433;Database=database_db;User ID=username@xxxxxxxxxx;Password={your_password_here};Trusted_Connection=False;Encrypt=True;Connection Timeout=30;
Your help is greatly appreciated, thank you!
Your Connection string seems to vary from what is shown here 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;
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.