Apply SQL Data Compare command line Switches
JohnnyS
Posts: 2 New member
We are using the Bamboo add-on for SQL Change Automation (SCA) to automate our deployment of changes to static data. Literally, we are taking a development DB (which SCA copies into a temporary DB) and comparing it to a Target (our QA environment for example) to get a script to run against QA to make it look just like dev. I have done this manually using SQL Data Compare, but we are now looking to automate thru SCA/Bamboo/Octopus.
The problem is that we are comparing Static Data and some of the data in the Target needs to be preserved. In SQL Compare, we would ignore a specific table using /Exclude:<tablename> and in SQL Data Compare's UI (uncheck the Target boxes) and in the SQL Data Compare command line (using /Exclude:Additional), but we can't find the place to incorporate this command line switch in SQL Change Automation. We tried adding "/Exclude:Additional" in the 'SQL Data Compare options...' section of the Bamboo build configuration, but that errored since switches are not the same as options.
Where do we define switches to use for SQL Compare and SQL Data Compare in SQL Change Automation?
The problem is that we are comparing Static Data and some of the data in the Target needs to be preserved. In SQL Compare, we would ignore a specific table using /Exclude:<tablename> and in SQL Data Compare's UI (uncheck the Target boxes) and in the SQL Data Compare command line (using /Exclude:Additional), but we can't find the place to incorporate this command line switch in SQL Change Automation. We tried adding "/Exclude:Additional" in the 'SQL Data Compare options...' section of the Bamboo build configuration, but that errored since switches are not the same as options.
Where do we define switches to use for SQL Compare and SQL Data Compare in SQL Change Automation?
Tagged:
Answers
The .exe is installed by default in "C:\Program Files (x86)\Red Gate\SQL Change Automation PowerShell\ in \SC for SQL Compare and \SDC for SQL Data Compare.
https://documentation.red-gate.com/sc/using-the-command-line
https://documentation.red-gate.com/sdc/using-the-command-line
I hope this helps. Please let me know if you have any further questions.
Kind regards,
Pete RuizThanks, Kevin