2013-01-10 50 views
2

我有一個SQL Azure數據庫。出於某種原因,當我在家時我可以使用它,但當我在星巴克時可以使用它。我可以成功登錄並通過Windows Azure Portal提供的基於Web的工具「管理」它。但是:使用星巴克的SQL Azure

  1. 當我的web應用程序試圖訪問數據庫,我收到一個錯誤,指出:

    提供者未返回ProviderManifestToken字符串。

  2. 當我嘗試從SQL Management Studio中訪問數據庫,我收到以下錯誤:

Cannot connect to tcp:[serverName],[number].
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: TCP Provider, error: 0 - A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.) (Microsoft SQL Server, Error: 10060)

我知道我的IP地址是暢通的,因爲如前所述,我可以使用基於網絡的工具。我知道數據庫設置正確,因爲我可以在家中使用它。但是,當我似乎嘗試從任何當地的咖啡店工作時,我都卡住了。

感謝

+0

我有完全相同的情況。很高興看到我不會發瘋。 –

回答

1

基於Azure的門戶網站不使用本地IP地址連接到你的數據庫網絡,它採用承載門戶服務器的IP地址。

由於您從咖啡店獲得了新的IP,無論是在Azure SQL防火牆中添加該項還是在所有IP中打開Azure SQL。

如果那不起作用,那麼也許你當地的咖啡店有防火牆設置阻塞端口1433 ...