I would like to add Description
and Status
in the Extended Properties of a large database to all my tables and columns so that someone can fill in the values.
It would be very laborious to add these two properties to each table and column. Is there a way to use T-SQL to be able to generate these via script?
Best Answer
As Jon mentioned, you can do it using system stored procedures.
Ref: Glenn Berry wrote this for 2008 and this is to add extended property on a table. Also MSSQL Tips has a good example as well.
You can adapt his script for columns as well.