Tuesday, September 6, 2011

Timeout issue in your App

First thing to check here is optimize your queries and then we can set the timeout property of command object (thats excuting the

stored procedure) ,not the timeout property of the connection string(which specify how long you want to try to establish a database connection)

//try following in your code
command.CommandTimeout = connection.ConnectionTimeout;

No comments:

Post a Comment

How to add Apple Developer Account to Visual Studio

  Generating an API Key Before you can add an Apple Developer Account to Visual Studio, you'll need to generate an API Key. Generating a...