IRepositoryODBC::GetNewConnection

See Also

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.

Error

Values

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.