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

LIveCharts2: Charts for Windows and web

Charts for Windows and web including .Net MAUI  LiveCharts - LiveCharts2 (lvcharts.com)