Jer*_* F. 5 sql t-sql
我希望在 t-SQL (MS SQL SMS) 中运行一个查询,该查询将在 X 秒后停止。说 30 秒。我的目标是在 6 分钟后停止查询。我知道查询不正确,但想给你一个想法。
Select * from DB_Table where (gatedate()+datepart(seconds,'00:00:30')) < getdate()
Jus*_*son 1
您将使用什么来执行此查询?如果您创建 .NET 应用程序,则存储过程的超时默认值为30秒。如果您愿意,可以将超时更改为 6 分钟SqlCommand.CommandTimeout
SqlCommand.CommandTimeout
归档时间:
14 年,8 月 前
查看次数:
5848 次
最近记录:
5 年,2 月 前