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

时间:2016-06-13 07:10:24

标签: sql-server azure ssms sql-server-2016

我尝试通过SSMS 2016导入数据层应用程序(* .bacpac文件)。我需要将该数据库放入Azure。然后它给出了下面提到的异常。但是我可以通过SSMS访问Azure现有数据库的表。你能告诉我为什么会这样吗?

 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

当我尝试通过SSMS 2016连接Azure Sql实例时,它会给出以下错误。但我仍然可以访问SSMS上的表等。在访问这些项目时没有问题。但它第一次给出了如下所示的错误。可能这个错误也与原来的错误有关。任何帮助都会受到高度赞赏吗?

enter image description here

1 个答案:

答案 0 :(得分: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