Adoconnection:Destroy() method
<< Click to Display Table of Contents >> Adoconnection:Destroy() method |
![]() ![]() ![]() |
This method destroys the COM object that is used by Vo2Ado to talk to the OleDB provioder.
METHOD Destroy() AS VOID PASCAL CLASS AdoConnection
Some OleDb providers use a kind of Connection Caching mechanism that keeps the connection open even when you call AdoConnection:Close(). This is done to speed up a possible re-opening of the connection. If that is the case, you can usually force the provider to really close the connection by calling the AdoConnection:Destroy() method.
Please remember that calling Destroy() kills the underlying COM object and accessing the Connection object after you destroyed it may lead to runtime errors.
AdoConnection, AdoConnection:Open(), AdoConnection:Close()