sys.function_order_columns (Transact-SQL)


Updated: June 10, 2016

THIS TOPIC APPLIES TO:yesSQL Server (starting with 2008)noAzure SQL DatabasenoAzure SQL Data Warehouse noParallel Data Warehouse

Returns one row per column that is a part of an ORDER expression of a commmon language runtime (CLR) table-valued function.

Column nameData typeDescription
object_idintID of the object (CLR table-valued function) the order is defined on.
order_column_idintID of the order column. order_column_id is unique only within object_id.

 order_column_id represents the position of this column in the ordering.
column_idintID of the column in object_id.

 column_id is unique only within object_id.
is_descendingbit1 = order column has a descending sort direction.

0 = order column has an ascending sort direction.

The visibility of the metadata in catalog views is limited to securables that a user either owns or on which the user has been granted some permission. For more information, see Metadata Visibility Configuration.

Object Catalog Views (Transact-SQL)
Catalog Views (Transact-SQL)

Community Additions