R
rguti
Hi,
Does anybody know how to get the column description for a table in SQL
Server 2000?
Thanks.
Does anybody know how to get the column description for a table in SQL
Server 2000?
Thanks.
rguti said:Hi,
I looked at the sp_columns but unfortunately it doesn't give the
description.
Imran Koradia said:select value from ::fn_listextendedproperty ('MS_Description', 'user',
'dbo', 'table', 'MyTable', 'column', 'Column1')
'MS_Description' is the description property of the column that you are
looking for; 'MyTable' is the table name and
'Column1' is the column for which you want the description. Note the special
syntax of this function (two prefixed colons) .
You can lookup the syntax and example of this function in sql server books
online for further details.