sql server - Use extended properties for documentation purpose? -


i intending use extended properties documentation. so, save descriptions , comments tables, views, etc. 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 wonder if idea. approach commonly used, , information stay in database?

so far, found information stays on alter view, deleted on drop view. that's ok. there other possibility information might deleted ?

yes, it's common approach used. yes, stay in database. real issue i've seen when people create deployment scripts or refresh environment , don't script out extended properties. example if deployment scripts decide drop , recreate stored procs every deployment. of script generation tools support scripting extended properties, few have disabled default. http://www.csvreader.com/posts/data_dictionary.php


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -