Site Sponsored By: SQLDSC - SQL Server Desired State Configuration
Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Hey guys!Is there a way to retrieve the description of a column using the t-sql command? The description/comment/remark in a particular column that we put (usually we do this in the enterprise manager).Or the exact formula or function in a particular column?T&RRenlaps
madhivanan
Premature Yak Congratulator
22864 Posts
Posted - 2005-07-05 : 01:03:10
There are two methods
select value from sysproperties where id=object_id('tableName')orSELECT value FROM ::fn_listextendedproperty (NULL, 'user', 'dbo', 'table', 'tableName', 'column', default)