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 upload app to macOS

1. Open Terminal Press Cmd (⌘) + Space , type Terminal , and hit Enter . 2. Navigate to Your Build Output Directory Your .app file is likel...