RepairDatabase Method

This method will perform repairs on the backend Access database used by the specified LDAP server instance.

IDL Definition

HRESULT RepairtDatabase( [in] VARIANT lInstanceId);

Parameter

lInstanceId

The LDAP server instance identifier.

Return Values

a standard HRESULT value

Remarks

This procedure is only applicable to LDAP servers that use Access as an underlying database.

WARNING: The given LDAP server instance will be stopped and restarted during the repair process. This is necessary in order for the Access DB driver to obtain an exclusive lock on the database as mandated by its repair procedure.

The RepairDatabase method will fail if another LDAP instance, aside from the given one, is also using the same Access Database.  Such instances must be stopped in order for the repair operation to succeed.


© 1997-1998 Microsoft Corporation. All rights reserved.