sp_helpcomputedcolumn

Description

Reports information on the computed columns in a specified table.

Syntax

sp_helpcomputedcolumn {tabname}

Parameters

tabname

names the table that contains computed columns.

Examples

Example 1

This example reports the computed columns in the mytitles table:

sp_helpcomputedcolumn mytitles
Column_Name Property
----------- ------------
sum_sales   materialized

Text
------------------------------------
AS price * total_sales materialized

(return status = 0)

Usage

Permissions

Any user can use sp_helpcomputedcolumn.

Auditing

Values in event and extrainfo columns from the sysaudits table are:

Event

Audit option

Command or access audited

Information in extrainfo

38

exec_procedure

Execution of a procedure

  • Roles – Current active roles

  • Keywords or options – NULL

  • Previous value – NULL

  • Current value – NULL

  • Other information – All input parameters

  • Proxy information – Original login name, if set proxy in effect