UniDAC MS SQL Server disconnection
Posted: Wed 28 Aug 2013 08:07
Hello.
Recently I started to use UniDAC components in Delphi 2010 IDE to develop database applications for video surveillance systems. I wrote a small multithreaded application for connection to database and reading data. Each thread has it's own UniConnection to connect to database and UniQuery to retrieve data. I noticed, that if I establish a connection to Microsoft SQL Server (or to MS SQL Server Express) and while connection not established I cant disconnect it and free TUniConnection and thread.
How can I correctly disconnect and free a UniConnection "instantly" and my connection thread while connection to Microsoft SQL Server is in process?
Decreasing a connection timeout doesnt help.
Thanks.
Recently I started to use UniDAC components in Delphi 2010 IDE to develop database applications for video surveillance systems. I wrote a small multithreaded application for connection to database and reading data. Each thread has it's own UniConnection to connect to database and UniQuery to retrieve data. I noticed, that if I establish a connection to Microsoft SQL Server (or to MS SQL Server Express) and while connection not established I cant disconnect it and free TUniConnection and thread.
How can I correctly disconnect and free a UniConnection "instantly" and my connection thread while connection to Microsoft SQL Server is in process?
Decreasing a connection timeout doesnt help.
Thanks.