Azure SQL数据库-多个作业的执行超时到期错误

时间:2018-09-03 15:15:20

标签: sql-server azure-sql-database

在SQL Server Management Studio中,我尝试在Azure SQL数据库中的一个表上禁用触发器时发现了一个问题,该数据库设置为最高可用性能层之一(Business Critical Gen 5)。我使用了右键单击禁用来完成此操作。超时期限到期后,我收到以下错误消息:

Execution Timeout Expired.  The timeout period elapsed prior to completion of the operation or the server is not responding. (.Net SqlClient Data Provider)

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

        ------------------------------
        Server Name: searchfoundry.database.windows.net
        Error Number: -2
        Severity: 11
        State: 0


        ------------------------------
        Program Location:

           at Microsoft.SqlServer.Management.Common.ConnectionManager.ExecuteTSql(ExecuteTSqlAction action, Object execObject, DataSet fillDataSet, Boolean catchException)
           at Microsoft.SqlServer.Management.Common.ServerConnection.ExecuteNonQuery(String sqlCommand, ExecutionTypes executionType, Boolean retry)
The wait operation timed out

帮助链接转到404-毫无疑问。

编辑#1: @DanGuzman好心地建议我以T-SQL运行禁用触发器。这工作了。但是,在我最初发布的时间和他提出建议的时间之间,我发现此超时错误发生在使用该数据库的基础架构/服务的其他区域中。

我已运行查询以检查此数据库上是否存在阻止会话。没有列出。我还将超时时间从30秒增加到了5分钟。项目仍在超时。

我正在寻找有关可以运行哪些其他查询的指导,以查询导致此超时发生的原因。

我很高兴重新启动SQL Server来解决此问题,但是,我们许多人都知道,不幸的是没有重新启动Azure SQL Server。

2 个答案:

答案 0 :(得分:0)

我通过增加数据库的DTU配额解决了类似的超时问题

答案 1 :(得分:0)

增加DTU对我有用。

enter image description here