CMaxDbPerSG Function (CHKSGFILES)

Topic Last Modified: 2006-12-01

The introduction is required.

Syntax

Static ULONG __stdcall CMaxDbPerSG ();

Parameters

This function accepts no parameters.

Return Value

CMaxDBPerSG

Unsigned Long. The maximum number of databases that the Exchange server allows per storage group.

Remarks

The CMaxDbPerSG() function returns the maximum number of databases allowed in a single Exchange server storage group. An instance of CCheckSGFiles may only validate databases (and transaction log files) from one storage group, so the value returned by this method also represents the maximum number of databases that can be checked using an instance of CCheckSGFiles.

By default, Microsoft Exchange Server 2003 and Exchange Server 2007 both allow a maximum of five databases per storage group.

Requirements

When calling this API on a computer where the Exchange Server 2007 Administrative Tools role is installed on Microsoft Windows XP, use the 32-bit version of this API.

When calling this API on a computer when Exchange Server 2007 is installed on a 64-bit version of Windows, use the 64-bit version of this API.

The account that the application is running under must have read access permissions to the database and log files to be checked.