Extended Properties and Developer Update Access
dbaRobRich
Posts: 6
In our environment, developers do not have any update permissions in our Production environments. One of our developers purchased SQL Doc to document our numerous databases. She has update permissions in the nonProduction environment and is using the extended properties to document the database and is various objects.
As the Production DBA, how do I move her extended properties from the nonProduction database to the Production database?
As the Production DBA, how do I move her extended properties from the nonProduction database to the Production database?
Comments
In an ideal world, how would you like for this to work?
David Atkinson
Red Gate Software
Product Manager
Redgate Software
I understand the benefits of storing the documentation information directly inro the subject database. However with our ever increasing seperation of production and nonproduction environments dictated by SOX auditors, it becomes very difficult, if not impossible, to grant the developers and designers any update permissions in the production databases.
Currently all updates are scripted and tested in nonproduction environments. Then the tested scripts are applied to the production envrionment by the production dba.
Thus we need an automated method of deploying this documentation information from the nonproduction environment to the production envrionment.
David
Product Manager
Redgate Software
I attempted to write a script to pull extended properties from one server and update to another server. The complication arrises because Microsoft provided system stored procedures are used to maintain the extended properties. To use these procedures requires dynamic SQL statements be generated by reading the information from the system tables and generating execute stored procedure statements. This is managable with one or two tables, but not with hundreds of objects in a database.
Another alternative is to update the system tables directly without using the supplied system stored procedures. My experience as a DBA leads me to believe that updating internal system tables directly without using provided stored procedures is not a best practice.
This brings me to the conclusion that the best option is to code a program to migrate the data from a development server to a production server. I was hoping this type of program could be provided by a vendor such as Red Gate instead of developing a program in house.
David
Product Manager
Redgate Software
Thank you for your assistance. I appreciate you taking the time to understand our requirements.
If you're dealing with a production database, please make sure you generate a script (rather than letting the tool apply the changes for you), and be very careful about checking to see what's in there so you don't accidentally push a change that isn't an extended property to your production database!
David
Product Manager
Redgate Software
Therefore I would like to see the SQL Compare tool enhanced to select only the comments. Until this enhancement is made, I can edit the generated script and discard the other changes I do not want to migrate at the same time.
Again, thank you for helping me find a solution to this problem.
You should be checking out new products out in the market.
HAve a nice day!