We have a powerbuilder application which connects to SQL Server 2008 database. We have some reports which run around 3-4 hours. This is via a procedure invoked from the application code. when this long report runs, the application is getting disconnected
from the database after 1 hour 40 minutes.
We have the below timeout parameters set in the connection string from application:
Connect timeout = 6000, TimeOut = 6000,CommandTimeOut = 6000
When we increased the CommandTimeOut Parameter to a higher value, the reports were completed with out database disconnect. But the performance was reduced. ie the reports are taking more time when we increased the value of CommandTimeout parameter in the
connection string.
Could you please let me know what is the best solution for this issue.
***Post moved by the moderator to the appropriate forum category.***