Hi Dave,
I think it is because not all Databases(Oracle, My SQL) support Description
property that Ado.net doesn't include Description column in its schema
table. By the way, it seems neither "sp_columns" nor "sp_help" helps in
this scenario.
#1 If you just want to get description property for the special
column/table/sp, you can use fn_listextendedproperty in SQL.
For example:
select value from ::fn_listextendedproperty ('MS_Description', 'user',
'dbo', 'table', 'Table1', 'column', 'Column1')
'MS_Description' is the description property of the column that you are
looking for;
'Table1' is the table name;
'Column1' is the column for which you want the description.
You can look up the syntax and example of this function in SQL server books
online for further details.
This method works both on SQL 2005 and on SQL 2000.
#2 if you want to list all the descriptions of column/table/sp.
I suggest you may follow Paul's suggestion. The document post by Paul is
the right point.
Another option, you may check SMO.
http://msdn2.microsoft.com/en-us/library/microsoft.sqlserver.management.smo.
database.extendedproperties.aspx
[Database.ExtendedProperties Property ]
Using SMO, you can get all description property from SQL server(both SQL
2000 and SQL 2005).
I haven't received the reply from product team so far. Anyway I will check
it for you. If I can get any information from there, I will also post it
here.
Sincerely,
Wen Yuan
Microsoft Online Community Support