Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

constantly getting SQL Server Timeout error

Status
Not open for further replies.

jkat

Programmer
Mar 9, 2001
17
0
0
US
Hello, Im using ASP and sometimes randomly when my ASP tried to OPEN a connection with my SQL server, i get the following error:

[Microsoft][ODBC SQL Server Driver] Timeout expired

I am using a DSN on my webserver that is connecting to another SQL server.

Any help on this would be greatly appreciated!!!

Thanks alot!!!

-Jason
 

"Timeout expired" means your query has exceeded the query time limit for your connection. There are at least two approaches to solving the problem.
[ol][li]Set a higher query timeout limit for the connection.
[li]Make the query run faster.[/ol]obviously, the 2nd approch is best. For web pages you want quick response. Try to analyze the query - check the query execution plan and analyze indexes - to see if the query performance can be improved. Then as a last resort increase the timeout value. Terry
------------------------------------
Blessed is the man who, having nothing to say, abstains from giving us worthy evidence of the fact. -George Eliot
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top