The Repository engine stores information in an SQL database. The Repository engine connects to the database server through an ODBC connection. The IRepositoryODBC interface provides you with access to the database through the same (or a similar) ODBC connection.
Care should be taken when accessing the Repository database directly, especially when sharing the Repository's ODBC connection. Specific restrictions are defined in the detailed information for each interface method. Directly accessing the Repository database in a read-only manner is generally considered safe; however, if you tune your Repository application to be dependent upon specific features of your database server, you limit the portability of your application.
Use the IRepositoryODBC interface to obtain or release an ODBC connection handle, or to retrieve the ODBC connection string used by the Repository engine.
To obtain a pointer to this interface, use the IRepository::QueryInterface method.
IUnknown Method | Description |
QueryInterface | Returns pointers to supported interfaces. |
AddRef | Increments the reference count. |
Release | Decrements the reference count. |
IDispatch Method | Description |
GetIDsOfNames | Maps a single member and a set of argument names to a corresponding set of dispatch identifiers. |
GetTypeInfo | Retrieves a type information object, which can be used to get the type information for an interface. |
GetTypeInfoCount | Retrieves the number of type information interfaces that an object provides (either 0 or 1). |
Invoke | Provides access to properties and methods exposed by an Automation object. |
IRepositoryODBC Method | Description |
ExecuteQuery | Executes the specified SQL query against the Repository database. |
FreeConnection | Releases an ODBC connection handle. |
get_ConnectionString | Retrieves the ODBC connection string that the Repository engine uses to obtain an ODBC connection. |
GetNewConnection | Obtains a new ODBC connection handle using the same connection settings that the Repository engine is using to access the Repository database. |
get_ReposConnection | Retrieves the ODBC connection handle that the Repository engine is using to access the Repository database. |