In MS SQL Server Management Studio 10.0.55 the easiest way:
- Display columns for table in object browser window
- Right-click the column of interest and click Modify.
- Look in the "Column Properties" window (in the lower right corner of my GUI) \
- Take a look in the βTable Designerβ section.
- Change the value for the Description line
- Click "x" in the upper right corner of the column change window / tab
- Answer βyβ when he says that the changes apply.
If you right-click on your table in the "Object Explorer" window and select properties, then click "Advanced Properties", you should see your comment.
Note that if you use the Script Table As command for the table, then the above Description column is still not displayed as a comment for the column. Instead, it displays an additional call to sp_addextendedproperty after creating the table. Satisfactory.
Ben Slade Apr 29 '16 at 20:35 2016-04-29 20:35
source share