17.06.2013 Views

Beginning Microsoft SQL Server 2008 ... - S3 Tech Training

Beginning Microsoft SQL Server 2008 ... - S3 Tech Training

Beginning Microsoft SQL Server 2008 ... - S3 Tech Training

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Appendix A: System Functions<br />

❑ INDEXKEY_PROPERTY<br />

❑ INDEXPROPERTY<br />

❑ OBJECT_ID<br />

❑ OBJECT_NAME<br />

❑ OBJECTPROPERTY<br />

❑ OBJECTPROPERTYEX<br />

❑ @@PROCID<br />

❑ SCHEMA_ID<br />

❑ SCHEMA_NAME<br />

❑ <strong>SQL</strong>_VARIANT_PROPERTY<br />

❑ TYPE_ID<br />

❑ TYPE_NAME<br />

❑ TYPEPROPERTY<br />

COL_LENGTH<br />

The COL_LENGTH function returns the defined length of a column. The syntax is as follows:<br />

COL_LENGTH(‘’, ‘’)<br />

The column parameter specifies the name of the column for which the length is to be determined. The<br />

table parameter specifies the name of the table that contains that column.<br />

COL_NAME<br />

The COL_NAME function takes a table ID number and a column ID number and returns the name of the<br />

database column. The syntax is as follows:<br />

COL_NAME(, )<br />

The column_id parameter specifies the ID number of the column. The table_id parameter specifies<br />

the ID number of the table that contains that column.<br />

COLUMNPROPERTY<br />

616<br />

The COLUMNPROPERTY function returns data about a column or procedure parameter. The syntax is as<br />

follows:<br />

COLUMNPROPERTY(, , )

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!