GetPartitionDbInfo Method

This method requests all the information about the various SQL server databases that support a specified partition for the LDAP server instance.

IDL Definition

HRESULT GetPartitionDbInfo(
 [in] VARIANT lInstanceId,
 [in] VARIANT szContainerPartition,
 [in] VARIANT lSubPartitionNumber,      
 [out] VARIANT * rgdwServerId,      
 [out] VARIANT * rgszServerName,      
 [out] VARIANT * rgszDatabaseName,   
 [out] VARIANT * rgszLogin,         
 [out] VARIANT * rgszPassword,      
 [out] VARIANT * rgdwMaxCnx,         
 [out] VARIANT * rgdwTimeout,      
 [out] VARIANT * rgdwReplicationType   
);

Parameters

lInstanceId (VT_I4)

The virtual server instance

szContainerPartition (VT_BSTR)

The name of the namespace partition for which the information is requested

lSubPartitionNumber (VT_I4)

The number of the sub-partition for which the information is requested - NOTE: Indices on the remaining parameters are correlated  (e.g. rgdwServerId[n] correlates to rgszServerName[n])

rgdwServerId

A VT_ARRAY containing VT_I4 integers indicating the server id of each supporting server/database combination.

rgszServerName

A VT_ARRAY containing VT_BSTR strings indicating the name of each of the supporting SQL servers.

rgszDatabaseName

A VT_ARRAY containing VT_BSTR strings indicating the targeted database on each of the supporting SQL servers.

rgszLogin

A VT_ARRAY containing VT_BSTR strings indicating the login name for each of the supporting SQL servers.

rgszPassword

A VT_ARRAY containing VT_BSTR strings indicating the associated login password for each of the supporting SQL servers.

rgdwMaxCnx

A VT_ARRAY containing VT_I4 integers indicating the maximum number of concurrent connections allowed from the LDAP server to the SQL server.

rgdwTimeout

A VT_ARRAY containing VT_I4 integers indicating the maximum time a request should be allowed to remain outstanding on the SQL server (how long before the LDAP server gives up on getting a response back from the SQL server.

rgdwReplicationType

A VT_ARRAY containing VT_I4 values indicating the replication type of the supporting SQL server.  A SQL server can be of types U2_REPLTYPE_WRITE, U2_REPLTYPE_READ, or U2_REPLTYPE_BOTH

Return Values

a standard HRESULT value


© 1997-1998 Microsoft Corporation. All rights reserved.