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 -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -