0
我試圖從我的工作網絡連接到SQL Azure數據庫。我的工作網絡允許我連接到我的家用計算機上的sql server:1443。但對於SQL Azure連接,我有這個。無法連接到SQL Azure
===================================
Cannot connect to vx9jyb8***.database.windows.net.
===================================
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: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) (.Net SqlClient Data Provider)
------------------------------
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&EvtSrc=MSSQLServer&EvtID=53&LinkId=20476
------------------------------
Error Number: 53
Severity: 20
State: 0
------------------------------
Program Location:
at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, SqlConnection owningObject)
at System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, Int64 timerExpire, SqlConnection owningObject)
at System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(String host, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, Int64 timerStart)
at System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance)
at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance)
at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection)
at System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup)
at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)
at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
at System.Data.SqlClient.SqlConnection.Open()
at Microsoft.SqlServer.Management.SqlStudio.Explorer.ObjectExplorerService.ValidateConnection(UIConnectionInfo ci, IServerType server)
at Microsoft.SqlServer.Management.UI.ConnectionDlg.Connector.ConnectionThreadUser()
我的IP添加到Azure門戶中的允許的IP地址。我還可以創建規則1.1.1.1-255.255.255.255
平是:
C:\Users\UName>ping vx9jyb8***.database.windows.net
Pinging data.bl2-1.database.windows.net [168.62.47.---] with 32 bytes of data:
Reply from 168.62.47.---: bytes=32 time=61ms TTL=108
Reply from 168.62.47.---: bytes=32 time=51ms TTL=108
Reply from 168.62.47.---: bytes=32 time=49ms TTL=108
Reply from 168.62.47.---: bytes=32 time=49ms TTL=108
Ping statistics for 168.62.47.---:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 49ms, Maximum = 61ms, Average = 52ms
我能做些什麼?
你可能想發表您的連接字符串,這樣的人可以去看看,如果那裏有什麼不妥的地方。 – JuneT 2013-02-27 11:27:38
我使用SQL管理器。 服務器:vx9jyb8---.database.windows.net 登錄:p --- r 密碼:1 ---(--- 3e 我覺得網絡中的問題只是因爲一切都在我家工作。我可以從工作連接到我的家庭SQL服務器,但不能蔚藍...... – Cherven 2013-02-27 15:04:30