SQL Server - How to prevent sql server from disconnect the idle connection after period of time? -
i using sql server 2012 desktop application client , application errors after period of time when no activity on , googled issue solutions points me auto_close option on database it's set false .
i thing missing in connection string (ado extension)
to honest, if have long running connections, can hit these errors regardless due firewalls / routers closing connections, etc. correct solution instantiate connection when need it, use connection , release it. connection pooling, not performance problem.
if long-running application "bursty", convenient open connection, number of commands -- when go idle, release connection , wait next burst of activity.
Comments
Post a Comment