| re: Ms Sql Server Giving Timeout Expired
Hi,
In some servers, if the Select statement is run with out specifying WITH (NOLOCK) then it will throw timeout expired.
Suppose you run the following query from your application
Select * from emp;
then it will throw time out expired
Please use
Select * from emp WITH (NOLOCK);
then it wont expire. I am not sure of which server setting that causes this problem.
The application will be slow if some one is trying to run a select statement without using "WITH (NOLOCK)"
Try to avoid users from executing the Select statement, which poses this problem.
Also if many Users are accessing the DB, then we should give some time for the DB to process it. If many processes queues up, then finally some will expire.This is purely due to the load on the DB.
Also monitor the performance of DB, some stored procedures that we write will eat up all DB resources because of which the application will hang up until that is executed.
It may also be due to increase in number of users using the application.
Hope this will be useful.
|