Question Locked

Timeout problem in ado.net

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
How we can avoid timeout in ado.net command execution

2 replies

by robo_dev

investigate if the server response time is adequate for your application.

You should note that the SqlConnection.ConnectionTimeout is the time allowed to establish a connection, and the SqlCommand.CommandTimeout is the time allowed to return data from a query or complete a data operation.

You should make sure your application is closing each connection that it opens, or you may create resource issues on your database server.

This discussion is closed to new replies.