IRepository::Create

See Also

Use this method to create a new repository. The fundamental repository tables are automatically created in the new repository. An IRepositoryObject interface pointer to the Microsoft® Repository root object is passed back to the caller.

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

Parameters

Connect
[in]
The ODBC connection string to be used for accessing the database server that will host your new 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 details, see the ConnectionFlags Enumeration.
*ppIRootObj
[out]
The IRepositoryObject interface pointer for the new repository's root Repository object.

Return Value

S_OK

The method completed successfully.

Error
Values

This method failed to complete successfully.

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