IRepository::Open

Meta Data Services Programming

Meta Data Services Programming

IRepository::Open

This method opens a repository. An IRepositoryObject interface pointer to the root object is passed back to the caller.

HRESULT Open(     BSTR                       Connect,
    BSTR                       User,
    BSTR                        Password,
    long                          fFlags,
    IRepositoryObject  **ppIRootObj
);

Parts

Connect

[in]
The ODBC connection string to be used for accessing the database server that hosts your repository.

User

[in]
The user name to use for identification to the database server.

Password

[in]
The password that matches the User input parameter.

fFlags

[in]
Flags that determine database access and caching behavior for the open repository. For more information, see ConnectionFlags Enumeration.

*ppIRootObj

[out]
The IRepositoryObject interface pointer for the root Repository object of the open repository.

Return Value

S_OK

The method completed successfully.

Error Values

This method failed to complete successfully.

See Also

IRepository Interface

IRepositoryObject Interface