I am intending to use extended properties for documentation. So, to save descriptions and comments to tables, views, etc. Like this:
EXECUTE sp_addextendedproperty
@name = N'MS_Description',
@value = N'custom description text',
@level0type = N'SCHEMA', @level0name = N'SchemaName',
@level1type = N'VIEW', @level1name = N'ViewName';
I just wonder if this is a good idea. Is this approach commonly used, and will the information stay in the database?
So far, I found that the information stays on ALTER VIEW
, but it is deleted on DROP VIEW
. That's OK. But is there any other possibility that the information might be deleted ?