gpt4 book ai didi

azure - 架构比较超时

转载 作者:行者123 更新时间:2023-12-04 23:49:34 27 4
gpt4 key购买 nike

在 Visual Studio 2013 中对数据库项目Azure SQL 数据库进行架构比较时,我不断收到以下超时错误:

Error 1 An error was received from SQL Server while attempting to reverse engineer elements of type Microsoft.Data.Schema.Sql.SchemaModel.ISqlUser: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.

Error 2 ExecuteReader requires an open and available Connection. The connection's current state is closed.

我在 Azure 中托管的 Windows Server 2012 R2 虚拟机上执行此操作。

  • 防火墙允许 1433 端口
  • SQL (Azure) 数据库服务器允许虚拟机的 IP

我可以使用 Visual Studio 的 SQL Server 对象资源管理器很好地查询数据库,因此我可以确定我的连接和帐户登录。

还有其他安全设置可能会导致这些问题吗?

最佳答案

如果超出数据库吞吐量单位 (DTS) 限制,您的 SQL 数据库 Azure 连接将超时。如果您使用 Azure 上 SQL 数据库的基本服务层,则很容易发生这种情况。

基本服务层的上限为 5 个数据库吞吐量单位 (5 DTU),因此如果您进行大量比较,则可能会超出阈值。尝试升级到 SQL 数据库的标准服务层(其阈值限制为 10 个 DTU),然后查看问题是否消失。

要了解有关发布到 SQL 数据库时超时到期的更多信息,请参阅以下帖子:

http://blogs.msdn.com/b/sqlblog/archive/2014/11/13/timeout-expired-while-publishing-to-sql-database-via-ssdt.aspx

超时错误消息具有误导性。

关于azure - 架构比较超时,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26055747/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com