在SQL Server中调整查询超时j解决方案
调整超时设置:
-  连接到 数据库引擎。 
-  在标准栏上,选择“新建查询”。 
-  将以下示例复制并粘贴到查询窗口中,然后选择“执行”。 此示例说明如何使用 sp_configure 将 query wait选项的值设置为2147483647秒。
USE master;
GOEXECUTE sp_configure 'show advanced options', 1;
GORECONFIGURE;
GOEXECUTE sp_configure 'query wait', 2147483647;
GORECONFIGURE;
GOEXECUTE sp_configure 'show advanced options', 0;
GORECONFIGURE;
GO1.show advanced options(服务器配置选项)
当“show advanced options”设置为 1 时,可以使用 sp_configure 列出高级选项。 默认值为 0
2.query wait (查询等待时间(秒))
用 sp_configure 将"show advanced options”设置为 2147483647 秒。默认值为 -1
