I'm using SQL Doc to document a development copy of a database. SQL Doc uses extended properties to store user entered values. At some point, I would like to copy those extended properties to the production database. What is the best way to do this?
SQL Server 2014 – Store and Apply Extended Properties to Another Database
sql serversql server 2014
Related Question
- Sql-server – Using T-SQL to dynamically create Extended Properties
- SQL Server – How to Copy Database and Clear Data Older Than N Days
- SQL Server 2014 – Format Documentation in MS_Description Extended Properties
- SQL Server – Querying Extended Properties for Tables/Views and Columns
- SQL Server – Documenting Databases with Extended Properties Overwritten Values
- Sql-server – Extended properties are not copied using SMO
Best Answer
You can use this script to get the columns descriptions from your development database.
Then upload a table with DataBase/Instance/Table/Column/Description to your production server, and use the following script to insert the description on your server. It only works with fields that don't have a previous description, so you must filter previously.