Welcome Guest
Login Register
 
Know SQL server was busy
 
1 Reply's, Recent Post by Tech on 4/6/2015 4:26:57 PM
   

Previous Thread     Next Thread

Tech
9 Points
51 Posts
      Reply            Report Abuse
Know SQL server was busy
4/4/2015 11:34:15 AM


Hi Team,

We are getting time out error in our applications.

Can we know that yesterday or previous days SQL server has more load or busy will multiple processing.

error:

ExecuteNonQuery exception SQL--00002: Timeout expired.

The timeout period elapsed prior to completion of the operation or the server is not responding. The statement has been terminated



Tech
9 Points
51 Posts
      Reply            Report Abuse
Re: Know SQL server was busy
4/6/2015 4:26:57 PM




Are your sure its because of SQL Server and not application design or data model?

The timeout error could have been caused due to variety or reasons and not just SQL Server being busy

Some things to look at

  • IIS Logs and Event viewer on the server where the application is hosted.
  • Sql Server Logs to track down the error.Errors logs can be viewed  in SQL Server management studio, SQL Server Agent  last node "Error Logs"
  • Run SQL profiler on your SQL/Storeprocedure to see which step is causing the timeout.
  • Check the number of records in the table and the indexes on the table from where the data is being requested. 
  • Check all connections in the code whether they are being disposed correctly.

Hope this helps


   Previous Thread     Next Thread