EXTFNAPIV4_DESCRIBE_PARM_TABLE_NUM_ROWS Attribute (Set)

The EXTFNAPIV4_DESCRIBE_PARM_TABLE_NUM_ROWS attribute indicates the number of rows in the table. Used in a describe_parameter_set scenario.

Data Type

a_sql_a_v4_extfn_estimate

Description

The estimated number of rows in the table. Only valid for argument 0 and table arguments.

Usage

The UDF sets this property for argument 0 if it estimates the number of rows in the result set. The server uses the estimate during optimization to make query processing decisions. You cannot set this value for an input table.

If you do not set a value, the server defaults to the number of rows specified by the DEFAULT_TABLE_UDF_ROW_COUNT option.

Returns

On success, returns a_v4_extfn_estimate.

On failure, returns one of the generic describe_parameter errors or:

Query Processing States

Valid in:
  • Query Optimization state
Related concepts
Query Processing States
Related reference
EXTFNAPIV4_DESCRIBE_PARM_TABLE_NUM_ROWS Attribute (Get)