Report
Steveiwonder
Posts: 3 New member
in ReadyRoll
Is it possible to have ReadyRoll somehow generate a preview of what script which actually be run againsts the database.
I know that SQL Compare has the option to generate an interactive report as see here:https://documentation.red-gate.com/sc10/reviewing-the-comparison-results/generating-a-report
and the command line options here: https://www.red-gate.com/hub/product-learning/sql-compare/sql-compare-command-line (scroll to "Generate a report outlinging the changes".
I'm wondering if something similar is available to ReadyRoll.
I ask because, before a live release we have a process where the SQL script being run on the live environment is given a final once over and to view the changes, we have to:
Is this at all possible?
I know that SQL Compare has the option to generate an interactive report as see here:https://documentation.red-gate.com/sc10/reviewing-the-comparison-results/generating-a-report
and the command line options here: https://www.red-gate.com/hub/product-learning/sql-compare/sql-compare-command-line (scroll to "Generate a report outlinging the changes".
I'm wondering if something similar is available to ReadyRoll.
I ask because, before a live release we have a process where the SQL script being run on the live environment is given a final once over and to view the changes, we have to:
- Download the package from Octopus
- Check which mirgation ids have already been run on live (select from migration table)
- Find all the migration id's in the package downloaded from Ocotpus and use this to view what will be execute
Is this at all possible?
Tagged:
Best Answer
-
dnlnln Posts: 234 Gold 2Unfortunately it is currently not possible to generate a preview of your deployment within Octopus Deploy.
It is only possible to generate preview artifacts at build time at the moment. If have a license for ReadyRoll Pro, you can have your build server produce a side-by-side diff of pending schema changes in html format, as well as a SQL script containing a delta of the migrations yet to be executed (what we call a patch deployment script) based on a given SQL Server instance/database name combination (the TargetServer / TargetDatabase). In terms of what is displayed in Octopus: a summary of this information is added to the nupkg file at build time, which is then displayed on the release information page within Octopus Deploy.
Given that the artifact is only generated at build time, and not immediately prior to deployment, the downside is that the report could be out-of-date by the time it comes to deploy. Also, as the nupkg build is performed only once, you will only be able to report on a single environment.
For more information, see Continuous Integration > Preview/Diff Report and Octopus Deploy > Creating a release.Daniel Nolan
Product Manager
Redgate Software