LimitClauseKind.Limit

Updated on

LimitClauseKind.Limit (3) is an enumeration that describes the type of limit clause supported by the SQL dialect used by this data source. It is a member of the LimitClauseKind.Type and specifies that this SQL dialect supports a LIMIT specifier to limit the number of rows returned.

Examples

The Odbc.DataSource function lets you connect to various data sources. Within this function, there’s a parameter named SqlCapabilities. This parameter can be used to specify certain capabilities or modifications to the SQL query being executed.

One of the options you can set within SqlCapabilities is the LimitClauseKind. This kind hasn’t been widely documented.

Here’s a simple example to illustrate the use of LimitClauseKind.Limit:

Odbc.DataSource(
  "dsn = your_dsn",
  [ HierarchicalNavigation = true,
    SqlCapabilities = [ LimitClauseKind=LimitClauseKind.Limit ]
  ]
)

By setting the LimitClauseKind to Limit, you’re instructing the query to use the SQL “LIMIT” clause. This can be particularly useful when you want to limit the number of rows returned from a large dataset.

Generally this is done through the user-interface using the navigation pop-up screen that appears when selecting Odbc.DataSource as method to connect.

Learn more about LimitClauseKind.Limit in the following articles:

Other related enumerations are:

Applies to

Here’s a list of functions that work with LimitClauseKind.Type:

BI Gorilla Youtube Channel

Contribute » | Contributors: Rick de Groot