Jaa


sys.computed_columns (Transact-SQL)

Contains a row for each column found in sys.columns that is a computed-column.

Column name Data type Description

<Inherited columns>

 

For a list of columns that this view inherits, see sys.columns (Transact-SQL).

definition

nvarchar(max)

SQL text that defines this computed-column.

SQL Server 2005 differs from SQL Server 2000 in the way it decodes and stores SQL expressions in the catalog metadata. The semantics of the decoded expression are equivalent to the original text; however, there are no syntactic guarantees. For example, white spaces are removed from the decoded expression. For more information, see Behavior Changes to Database Engine Features in SQL Server 2005.

uses_database_collation

bit

1 = The column definition depends on the default collation of the database for correct evaluation; otherwise, 0. Such a dependency prevents changing the database default collation.

is_persisted

bit

Computed column is persisted.

See Also

Reference

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

Help and Information

Getting SQL Server 2005 Assistance

Change History

Release History

17 July 2006

New content:
  • In the definition column, added content about how SQL expressions are stored in SQL Server 2005.