MaxRecords Property

   Applies To

Sets or returns the maximum number of records to return from a query.

Syntax

VOIDSetMaxRecords(LONG lRecords);

LONGGetMaxRecords(VOID);

Parameters

Type Example Description
LONG lRecords A Long specifying the maximum number of records to return.

Remarks

Once the number of rows specified by MaxRecords is returned to your application in a CdbRecordset, the query processor will stop returning additional records even if more records would qualify for inclusion in the CdbRecordset. This property is useful in situations where limited client resources prohibit management of large numbers of records.

The default value is 0, indicating no limit on the number of records returned.