sp_columns

Description

Returns information about the type of data that can be stored in one or more columns.

Syntax

sp_columns table_name [, table_owner]
 [, table_qualifier] [, column_name]

Parameters

table_name

is the table name or view. Use the wildcard character to request information about more than one table.

table_owner

is the owner of the table or view. Use the wildcard character to request information about tables owned by more than one user.

table_qualifier

is ignored. Leave blank or set to NULL.

column_name

is the name of the column for which you want information. Use the wildcard character to request information about more than one column.

Usage