Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
3.1M1
-
None
-
None
-
MS SQL
Description
Problem can be simulated after restart of SQL Server.
So connection in my pool become "dead". Only thing that helps: restart my appllication.
I wold like to have some mechanism to validate pooled connections and refresh them.
Possible solutions:
1) validate before give connection from pool
2) asynchronous thread for validation.
3) Generate event for pool on such exceptions (to validate and refresh connections)
1- is more reliable but not sure how it will influence on performance...
2 - at least something... but can look like some not understandable magic...
3 - need some code investigation...