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.
HRESULT GetNewConnection(long *pHdbc );
Parameters
Return Value
S_OK
The method completed successfully.
This method failed to complete successfully.
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.