IRepositoryODBC::GetNewConnection

See Also

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

*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.

(c) 1988-1998 Microsoft Corporation. All Rights Reserved.