Repository GetNewConnection Method

See Also

This method obtains a new ODBC connection handle using the same ODBC connection string that the Repository engine is using to access the Repository database. Using a new ODBC connection handle isolates you from changes made by the Repository engine.

This property is not attached to the default interface for the Repository Automation object; it is attached to the IRepositoryODBC interface. For details on how to access a member of an interface that is not the default interface, see Accessing Automation Object Members.

Syntax

variable = object.GetNewConnection

The GetNewConnection method syntax has the following parts.

Part Description
variable Receives the new connection handle.
object The object that represents the open Repository instance through which this program is interacting with the Repository.

Remarks

Be sure to free the handle obtained via this method before releasing your open Repository instance. To free the connection handle, use the FreeConnection method.