Previous Topic: Change the Instance of an ODBC ConnectionNext Topic: Save a Result Set to a CSV File


Restrict Row Count in Query Results

When executing a query against a large model or database, you may want to restrict the row count for the query. This causes the Query Tool to process only the first n number of rows indicated in the number field. This may be helpful if you have executed a query that returns lengthy results, but the section of the results that you would like to see is contained in the first 100 rows, for example. In this case, enter 100 in the Restrict row count to number field, and the query will only return the first 100 rows.

To restrict row count in query results

  1. Click Query Tool on the Tools menu.

    The Query Tool opens.

  2. Select the Restrict row count to check box, and enter a number in the adjoining box.

    ODBC_Restrict_Row

    When your query runs, the results that display are restricted to the first n number of rows you indicate.