Are SQL Server timeouts logged?

后端 未结 3 1181
日久生厌
日久生厌 2021-02-13 06:23

Are SQL Server timeouts (SELECT queries, in particular) logged in the ERRORLOG file?

Background is a customer with a web site having occasional \"Request timeout\" messa

3条回答
  •  感情败类
    2021-02-13 07:18

    No. You will need to use SQL Profiler. A standard trace with the Lock Timeout event and Deadlock Graph events should do it.

    • Lock:Timeout Event Class

    • Deadlock Graph Event Class

    Hardware aside (such as enough RAM and fast drives, and appropriate placement of Data and Log files on the appropriate RAID configurations) most timeouts are caused by not having a sufficently 'good' set of indexes for your workload.

    Do you have index maintenance plans scheduled regularly?

提交回复
热议问题