Extract SQL to add or update the properties
mrekdal
Posts: 4
I would like to do documentation on one database, and then reapply the same documentation to another instance, i.e. add the extended properties there as well. Is that possible, without a lot of manual cut and paste?
Magne Rekdal, MD
Consultant, Norwegian National Diabetes Register
Managing Director, Emetra AS
Consultant, Norwegian National Diabetes Register
Managing Director, Emetra AS
Comments
Running SQL Compare then between Database A and Database B would obtain another SQL script that you could process in a similar way, and run that against Database B, and synchronise them.
The alternative would be to write a Toolkit application, extracting and running only the lines containing 'sp_addextendedproperty'
Red-Gate support
Have you considered using SQL Compare to transfer the object descriptions across? They are just extended properties so will be identified as differences when you compare the two schemas, as long as you make sure you haven't ignore extended properties in the options.
David Atkinson
Red Gate Software
Product Manager
Redgate Software