Answered by:
connection timeout

Question
-
Hello guys,
i have developed two applications now, one is a windows the other web, and one similarity is that they both retireve information from a SQL database on startup, i dont know if its cos of my system config, and since its SQL express, but for most of the time that i start my apps, they timeout in connection to the database, its when i close and open the page that it finally connects,please why is this, cos i dont know if i would experience same problem if i upload my web app to a host server.
also i have tried to catch the error and re connect to the database, but it still timesout, is there anyway out. thanksThursday, February 5, 2009 6:55 AM
Answers
-
I think your problem is similar to this one: http://social.technet.microsoft.com/Forums/en-US/sqlexpress/thread/d21d5472-fe7e-41d4-aaee-b54090d7d66f/
You have an answer on that thread.
Lucian Baciu, http://studentclub.ro/lucians_weblog- Edited by Lucian BaciuMicrosoft employee Friday, February 6, 2009 10:08 AM added text
- Proposed as answer by Harry Zhu Monday, February 9, 2009 8:00 AM
- Marked as answer by Harry Zhu Wednesday, February 11, 2009 1:34 AM
Friday, February 6, 2009 10:08 AM
All replies
-
Hi!
Use SQL Profiler to diagnose where the delay is occurring: in the connection or in the stored procedure call.
Lucian Baciu, http://studentclub.ro/lucians_weblogThursday, February 5, 2009 9:02 AM -
i used my debuggin tool and found out that the exception was from the connection.Thursday, February 5, 2009 8:37 PM
-
I think your problem is similar to this one: http://social.technet.microsoft.com/Forums/en-US/sqlexpress/thread/d21d5472-fe7e-41d4-aaee-b54090d7d66f/
You have an answer on that thread.
Lucian Baciu, http://studentclub.ro/lucians_weblog- Edited by Lucian BaciuMicrosoft employee Friday, February 6, 2009 10:08 AM added text
- Proposed as answer by Harry Zhu Monday, February 9, 2009 8:00 AM
- Marked as answer by Harry Zhu Wednesday, February 11, 2009 1:34 AM
Friday, February 6, 2009 10:08 AM