连接超时已过期SSMS 2016导入bacpac文件时

问题描述:

我试图通过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

基于您已发布它看起来像您在连接到数据库在本地计算机上的问题的截图。导致“连接超时”错误的原因之一是您没有运行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