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.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Description of fields

Author  Topic 

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2005-05-18 : 03:33:56
When creating a table from Query Analyser, how can I give the description for the fields?
Similarly, how can I retrieve the description of a column through query?

Madhivanan

Failing to plan is Planning to fail

AndyB13
Aged Yak Warrior

583 Posts

Posted - 2005-05-18 : 04:10:11
Use sp_addextendedproperty --see BOL

The description is put into the sysproperties table

Andy

Beauty is in the eyes of the beerholder
Go to Top of Page
   

- Advertisement -