Adoconnection:Destroy() method

<< Click to Display Table of Contents >>

Navigation:  Ado Classes > AdoConnection Class >

Adoconnection:Destroy() method

Previous pageReturn to chapter overviewNext page

Purpose

This method destroys the COM object that is used by Vo2Ado to talk to the OleDB provioder.

 

Prototype

METHOD Destroy() AS VOID PASCAL CLASS AdoConnection

 

 

Note:

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.

 

 

See Also

AdoConnection, AdoConnection:Open(), AdoConnection:Close()