adding a column description

I’d say you will probably want to do it using the sp_addextendedproperty stored proc.

Microsoft has some good documentation on it.

Try this:

EXEC sp_addextendedproperty 
    @name = N'MS_Description', @value="Hey, here is my description!",
    @level0type = N'Schema',   @level0name="yourschema",
    @level1type = N'Table',    @level1name="YourTable",
    @level2type = N'Column',   @level2name="yourColumn";
GO

Leave a Comment