2016-06-13 55 views
0

我試圖通過SSMS 2016導入數據層應用程序(* .bacpac文件)。我需要將該數據庫放入Azure。然後它給出了下面提到的異常。但是我可以通過SSMS訪問Azure現有的數據庫表。你能告訴我爲什麼會發生這種情況嗎?連接超時已過期SSMS 2016導入bacpac文件時

TITLE: Microsoft SQL Server Management Studio 
    ------------------------------ 

    Failed to connect to server (local). (Microsoft.SqlServer.Smo) 

    ------------------------------ 
    ADDITIONAL INFORMATION: 

    Connection Timeout Expired. The timeout period elapsed while attempting to 
consume the pre-login handshake acknowledgement. This could be because the pre- 
login handshake failed or the server was unable to respond back in time. The 
duration spent while attempting to connect to this server was - [Pre-Login] 
initialization=1912; handshake=3839; (Microsoft SQL Server, Error: -2) 

    For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft%20SQL%20Server&EvtSrc=MSSQLServer&EvtID=-2&LinkId=20476 

    ------------------------------ 

    The wait operation timed out 

    ------------------------------ 
    BUTTONS: 

    OK 
    ------------------------------ 

enter image description here

當我嘗試在Azure SQL實例通過SSMS 2016連接,它提供了以下error.But我仍然可以訪問在SSMS表和等。沒有問題在那裏訪問這些items.But它會給出錯誤,如下所示的第一次。可能是這個錯誤是有關原來的too.Any幫助將高度讚賞?

enter image description here

回答

0

基於您已發佈它看起來像您在連接到數據庫在本地計算機上的問題的截圖。導致「連接超時」錯誤的原因之一是您沒有運行SQL Server實例。 There is a technet article with steps that could help you resolve this.

另外,SSMS提供了一個嚮導,可以幫助您將本地計算機上的數據庫直接遷移到Azure SQL數據庫,而不用擔心* .bacpac文件。 Perhaps that could help you solve your problem as well

+0

我沒有任何問題連接到'localhost'.It工作正常。這發生在我嘗試連接天藍色數據庫時。您的第二個選項也是一種替代方法。但我需要解決上述問題。 – Sampath

+0

這是很好的知道,感謝評論。你是否經常遇到這個問題,還是暫時的? –

+0

當我嘗試連接到Azure數據庫時,總會發生這種情況。 – Sampath

相關問題