What is the difference between connection timeout and command timeout?
In our application sometimes it is showing a timeout error. When we increased the command timeout value to 100(from default 30), its working. Is there any issue in increasing the command timeout value.
Thanks,
Mahesh
As mentioned connection timeout is timeout for establishing connection with DB server. Command timeout is timeout for command execution.
Extending command timeout is possible but when doing this in ASP.NET you should be also aware of request execution timeout. You can set it in code via
Server.ScriptTimeoutor globally inhttpRuntime/@executionTimeout. Default value for .NET 2.0+ is 110s.But generally this is most probably wrong way to architect application. Unless you are doing some heavy online reporting wich will be rarely executed no one will want to use it.