Forcing a query timeout in SQL Server

前端 未结 4 1414

We have had an issue with a block of code that responds poorly in the face of slow databases (It craps the bed on a query timeout). We have created a patch, and are in the p

4条回答
  •  萌比男神i
    2020-11-29 18:09

    You can just tell your sql code to wait for a minute before returning:

    WaitFor Delay '00:01:00'
    

提交回复
热议问题