Deploying to Scripts Folder
neil.reynolds
Posts: 4 New member
Hi,
Due to the way that we deploy schema changes, I need to be able to generate one script file per object (table including foreign keys) and then deploy using an in-house utility.
The in-house utility looks at the script header to determine that order in which the scripts are deployed, it is expecting a DeployOrderID in header string. In SQL Compare when the script files are generated, is it possible to determine the order in which they should deploy? and inject this into the script header? Or at least make it available in some way.
Using SQL compare to deploy to a database from a scripts folder can generate a single deployment script with the objects created in the correct order. Is there a way to surface that information in individual script files?
Hope someone can help.
Cheers
Neil
Due to the way that we deploy schema changes, I need to be able to generate one script file per object (table including foreign keys) and then deploy using an in-house utility.
The in-house utility looks at the script header to determine that order in which the scripts are deployed, it is expecting a DeployOrderID in header string. In SQL Compare when the script files are generated, is it possible to determine the order in which they should deploy? and inject this into the script header? Or at least make it available in some way.
Using SQL compare to deploy to a database from a scripts folder can generate a single deployment script with the objects created in the correct order. Is there a way to surface that information in individual script files?
Hope someone can help.
Cheers
Neil
Comments
There might be something we could do around splitting up a deployment script into multiple files that you could feed into your custom tool, but thinking about it there's a lot of work we'd have to do there to make the feature work well in a majority of cases so it's probably not worth it for SQL Compare
Product Manager
Redgate Software
Thanks for the replies.
It is possible to walk the foreign keys and determine the order in which the scripts need to be applied. I am looking for a tool to help generate the individual files, without having to write it myself.
It does not sound like SQL Compare does what I require, but thanks for your replies.