我是 UI 团队的一员,我们开发了一个使用 SQL Server 作为后端的 asp.net mvc 应用程序。每次 SQL 服务器变得忙碌时,应用程序都会停止响应。我看到了事件日志,并在应用程序服务器上创建了以下条目。
System.Data.UpdateException: An error occurred while updating the entries.
See the inner exception for details. --->
System.Data.SqlClient.SqlException: Timeout expired.
The timeout period elapsed prior to completion of the operation or
the server is not responding
但是当数据库团队开始调查问题时,数据库服务器变得响应,并且没有可靠的方法来判断错误是由 SQL 服务器引起的。有没有办法检查 SQL 服务器上的一些日志并说服务器在任何特定时间段忙/没有响应。