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;
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