Timeout errors are typically an error not caused by your application itself - it's a problem with the connection to the SQL database. If you are not running the application locally, check that you have a good connection to the computer running it, if your ping times are inconsistent or very long then that could be the problem.
If you are working on the DB locally, then you can check the timeout settings and modify them in order to cope with the delay in the request calls.
If you are working on a remote DB m/c, then maintaining a consistent Connection is needed. If you are unsure about how to keep the connection consistent with your machine to the DB machine, then write a simple batch script which pings the DB server and keeps the Connection alive for your application to send a request.
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop