Meta Data Services Programming
IRepositoryODBC::GetNewConnection
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.
HRESULT GetNewConnection(long *pHdbc);
Parameters
*pHdbc
[out]
A new ODBC connection handle.
Return Value
S_OK
The method completed successfully.
This method failed to complete successfully.
Remarks
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.