Repository GetNewConnection Method

Meta Data Services Programming

Meta Data Services Programming

Repository GetNewConnection Method

This method obtains a new ODBC connection handle using the same ODBC connection string that the repository engine uses 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 more information about accessing 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 application code or a tool interacts with a 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.

See Also

IRepositoryODBC Interface

Repository FreeConnection Method

Repository Object