index_col

Displays the name of the indexed column in the specified table or view to a maximum of 255 bytes in length.

Syntax

index_col(object_name, index_id, key_#[, user_id])

Parameters

Examples

Usage

index_col returns NULL if object_name is not a table or view name.

See also:
  • Transact-SQL Users Guide

  • sp_helpindex in Reference Manual: Procedures

Standards

ANSI SQL – Compliance level: Transact-SQL extension.

Permissions

Any user can execute index_col.

Related reference
object_id