CMaxDbPerSG Function (CHKSGFILES)
The CMaxDbPerSG function returns the maximum number of databases allowed in a single Exchange Server storage group.
Important
Storage groups are not available in Microsoft Exchange Server 2010. For backward compatibility with databases and storage groups in earlier versions of Exchange Server, the CHKSGFILES API includes the capability to specify storage groups. When you run CHKSGFILES against Exchange 2010 databases, you should set parameters that specify a storage group identifier to an empty string.
Static ULONG __stdcall CMaxDbPerSG ();
Parameters
This function accepts no parameters.
Return Value
CMaxDBPerSG |
The maximum number of databases that the specified Exchange server allows per storage group. |
Remarks
You can use the CCheckSGFiles object to validate databases (and transaction log files) in only one storage group, so the value returned by the CMaxDbPerSG function also represents the maximum number of databases that you can check by using an instance of CCheckSGFiles. Because storage groups are not part of Exchange 2010, this function returns 1.
Note that by default, Microsoft, Exchange Server 2003, and Exchange Server 2007 all allow a maximum of five databases per storage group.
Requirements
Exchange 2010 only includes a 64-bit version of CHKSGFILES.
The account that the application is running under must have read access permissions to the database and log files that are to be checked.