QuerySection object, DataModel object
Defines the maximum number of rows retrieved by queries against the Data Model. Use this property with RowLimitActive (Property) to define the maximum number of rows to retrieve. This property corresponds to the Rows field on the General tab of the Data Model Options dialog.
This example shows how to define a 100 row limit and process the query: