المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : SQL DB error: timeout problem



C# Programming
06-22-2009, 08:31 PM
Hello experts!

I am puzzled with this problem in using c# to communicate with an SQL database. Whenever I run the application for the first time, I always receive an exception error saying that the timeout period has expired in trying to connect to the database. When I run the application for the second time (and all succeeding times), the application connects instantly with no problem.

Why is my application unable to connect to the database when its in the first time? It would be too lengthy to post my code here so I am just expecting a general answer. I might be missing something simple here.

Thanks a lot.