【问题标题】:Connection Timeout Expired SSMS 2016 when Imported bacpac file导入 bacpac 文件时连接超时已过期 SSMS 2016
【发布时间】:2016-06-13 07:10:24
【问题描述】:

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

当我尝试通过 SSMS 2016 连接 Azure Sql 实例时,出现以下错误。但我仍然可以访问 SSMS 上的表等。访问这些项目没有问题。但它第一次给出如下所示的错误。可能这个错误也与原始错误有关。任何帮助将不胜感激?

【问题讨论】:

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


    【解决方案1】:

    根据您发布的屏幕截图,您似乎在连接到本地计算机上的数据库时遇到问题。 “连接超时”错误的原因之一是您没有运行 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.

    【讨论】:

    • 我连接到localhost 没有任何问题。它工作正常。当我尝试连接天蓝色数据库时发生了这种情况。您的第二个选项也是一种替代方法。但是我需要理清上面的问题。
    • 很高兴知道这一点,感谢您的评论。您是否经常遇到此问题,还是暂时性的?
    • 当我尝试连接到 Azure 数据库时总是会发生这种情况。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-09-15
    • 2019-04-09
    • 1970-01-01
    • 2017-02-20
    • 1970-01-01
    • 2022-01-13
    相关资源
    最近更新 更多