Does anyone know how to add a description to a SQL Server column by running a script? I know you can add a description when you create the column using SQL Server Management
In MS SQL Server Management Studio 10.0.55, the easiest way is to:
If you then right click on your table in the Object Explorer window and click on properties, then click on "Extended Properties", you should see your comment.
Note, if you do a "Script Table As" command for the table, the above column "Description" still doesn't show up as a comment for the column. Instead it shows an extra sp_addextendedproperty call after the table create. Mediocre.