I need to generate script with description for each table and field. Filling Documentation tags puts comments to Objects, but not into the script. Is it possible to generate automaticly something like this:
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Field description' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SampleTable', @level2type=N'COLUMN',@level2name=N'SampleTableFieldName'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Description' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SampleTable'
GO