I work with Delphi 2010 and SQL Server 2012. Components for database is sdac.
I have a service working with database and it has several threads. In them it executes different requests to database. Every of these threads had a connection timeout and command timeout, and separate tmsconnection
of course. And one time a sample of SQL Server itself was rebooted by the admin.
Operations in main thread had coped with this situation without problem. One of the other threads have written error in its connection and it was worked out, but stopped hang itself just after, I think in the beginning of next iteration. Other threads which had connection only initially worked out this situation without any problems.
Tell me please, does it mean during every connection to database in a secondary threads, I run the risk of hanging if the server would be rebooted during that time, and I can do nothing to protect against that?