col_name

Returns the name of the column where the table and column IDs are specified, and can be up to 255 bytes in length.

Syntax

col_name(object_id, column_id [, database_id])

Parameters

Examples

Usage

See also Transact-SQL Users Guide.

Standards

ANSI SQL – Compliance level: Transact-SQL extension.

Permissions

Any user can execute col_name.

Related reference
db_id
object_id