Click here to Skip to main content
15,867,594 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I am getting a connection timeout error for a scheduled task for sometimes in sql server 2008 r2 for an exe which was build in Visual Studio 2010. When I click the task schedular run button manually, it works fine everytime. Here is the error log that was getting recorded frequently and not all the times. Can any one suggest on this what could be happening and how to resolve it?

Login failed for user 'sa'.SQL Server could not be connected
Connection Timeout Expired. The timeout period elapsed during the post-login phase. The connection could have timed out while waiting for server to complete the login process and respond; Or it could have timed out while attempting to create multiple active connections. The duration spent while attempting to connect to this server was - [Pre-Login] initialization=4; handshake=7; [Login] initialization=0; authentication=0; [Post-Login] complete=14001;
Posted

1 solution

See this Question on Stack Exchange. This may be exactly your problem. But it can be help. I had same problem and This gave the help.

http://stackoverflow.com/questions/1421978/help-troubleshooting-sqlexception-timeout-expired-on-connection-in-a-non-load[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900