CdbQueryDef::SetMaxRecords, GetMaxRecords Property

Sets or returns the maximum number of records to return from a query. The default value is 0, indicating no limit on the number of records returned.

Syntax

VOIDSetMaxRecords(LONG l);

LONGGetMaxRecords(VOID);

Set Parameters

Type Example Description
LONG l 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 Recordset, the query processor will stop returning additional records even if more records would qualify for inclusion in the Recordset. This property is useful in situations where limited client resources prohibit management of large numbers of records.