Repository ReposConnection Property

Meta Data Services Programming

Meta Data Services Programming

Repository ReposConnection Property

This property contains the ODBC connection handle that the repository engine is using to access the repository database. This is a read-only property.

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

object.ReposConnection

The ReposConnection property syntax has the following part.

Part Description
object The object that represents the open repository instance through which application code or a tool interacts with a repository
Remarks

Using the repository engine ODBC connection handle does not isolate you from changes made by the repository engine. For example, uncommitted changes made by the repository engine will be visible to your application.

When using the repository engine's ODBC connection handle, you must not change the state of the handle in a way that is incompatible with the repository engine. Specifically, do not:

  • Change any ODBC connection options.

  • Perform any access operations that are concurrent with repository method invocations.

  • Directly commit or rollback a database transaction. The IRepositoryTransaction interface must always be used to manage transactions.

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

See Also

Connecting to and Configuring a Repository

IRepositoryODBC Interface

IRepositoryTransaction Interface

Repository FreeConnection Method

Repository Object