[英]Azure SQL Database - Execution Timeout Expired error on several jobs
In SQL Server Management Studio, I discovered an issue while attempting to disable a trigger on one of our tables in our Azure SQL Database, which is set at one of the highest-available performance tiers (Business Critical Gen 5).在 SQL Server Management Studio 中,我在尝试禁用 Azure SQL 数据库中的一个表上的触发器时发现了一个问题,该数据库设置为最高可用性能层之一(Business Critical Gen 5)。 I used right-click disable to accomplish this.
我使用右键单击禁用来完成此操作。 I receive the following error after the timeout period expires:
超时期限到期后,我收到以下错误:
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
The help link goes to a 404 - no surprise there.帮助链接指向 404 - 这并不奇怪。
EDIT #1: @DanGuzman kindly assisted me in suggesting I run the disable trigger as T-SQL.编辑 #1: @DanGuzman 帮助我建议我将禁用触发器作为 T-SQL 运行。 This worked.
这奏效了。 However, in between the time I originally posted, and the time he gave his suggestion, I discovered that this timeout error is occurring within other areas of our infrastructure/services which use this database.
但是,在我最初发布的时间和他提出建议的时间之间,我发现此超时错误发生在使用此数据库的基础架构/服务的其他区域中。
I have run a query to check for blocking sessions on this database.我运行了一个查询来检查这个数据库上的阻塞会话。 There are none listed.
没有列出。 I have also increased the timeout period from 30 seconds to 5 minutes.
我还将超时时间从 30 秒增加到 5 分钟。 Items are still timing out.
项目仍然超时。
I am looking for guidance on what other queries I can run to look under the hood of this database to determine what is causing these timeouts to occur.我正在寻找有关我可以运行哪些其他查询以查看该数据库的幕后情况以确定导致这些超时发生的原因的指导。
I'd be happy to just restart the SQL Server to resolve this, but as many of us know, there is no restarting Azure SQL Servers, unfortunately.我很乐意重新启动 SQL Server 来解决这个问题,但正如我们许多人所知,不幸的是,没有重新启动 Azure SQL Server。
我通过增加 DB 的 DTU 配额解决了类似的超时问题
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.