This method obtains a new ODBC connection handle using the same ODBC connection string that the Microsoft® 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.
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. |
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.