AdoConnection:Close()

<< Click to Display Table of Contents >>

Navigation:  Ado Classes > AdoConnection Class >

AdoConnection:Close()

Previous pageReturn to chapter overviewNext page

Purpose

Closes an open connection and any dependent objects

 

Prototype

 

METHOD Close () AS VOID

 

 

Return

NOTHING

 

Note:

Some OleDb providers use a kind of Connection Caching mechanism that keeps the connection open even when you call 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:Destroy()