MAPI api GetRowCount() does not return all the user mailbox present in the DAG environment

Mar 2, 2012 at 9:40 AM

In exchange 2010 with DAG setup the MAPI api GetRowCount() does not return all the user mailbox present in the DAG environment.

There are two database created in the DAG, database “db1” on node DAG1(physical server) and database “db2” on node DAG2(physical server), the virtual array name of the DAG environment is "dag.com".

Suppose if user1 mailbox exists on one database(db1) and another user2 mailbox exists on another database(db2) and if both these database are not active on the same physical server present in the DAG, then the MAPI api GetRowCount() does not return all the user mailbox's present in the DAG environment...

Why is this MAPI api GetRowCount() not returning all user mailbox's, when the database "db1" is active on one physical server DAG1 and database "db2" is active on another physical server DAG2 in the DAG environment ?

is this a limitation of MAPI api GetRowCount() or problem with mapi api GetRowCount()... ?

if there is any solution using MFCMAPI api's only which will retrieve all the user mailbox's from both active and passive copies present in the server. ?

Coordinator
Mar 2, 2012 at 12:30 PM
Edited Mar 5, 2012 at 12:48 PM
GetMailboxTable returns a table containing mailboxes on the server you specified. If you want mailboxes from multiple servers, you need to query each on individually.
Mar 5, 2012 at 9:59 AM

i am using DAG array as ther server name and with this i am not getting all the mailbox's present in the DAG environement.

Coordinator
Mar 5, 2012 at 12:49 PM

GetMailboxTable predates all this DAG stuff. It expects to be pointed to the mailbox server (single server) you want information about. If you want information about a different server, point it at a different server.