Compare two local git repositories
vincenzolanera
Posts: 1 New member
in SQL Compare
Hi,
I need to use sql compare from command line. What is the command for compare two local git repositories and generate a migration script?
I need to use sql compare from command line. What is the command for compare two local git repositories and generate a migration script?
Best Answer
-
AlexYates Posts: 264 Rose Gold 2Docs at:
https://documentation.red-gate.com/sc13/using-the-command-line/switches-used-in-the-command-line
Something like this should do the trick:
sqlcompare /Scripts1:"C:\whatever\path\you\type\in\SQLSourceControl\Setup\tab" /Scripts2:"C:\whatever\other\path\you\type\in\SQLSourceControl\Setup\tab" /scriptFile:"C:\Scripts Folder\WidgetSyncScript.sql"
What's the use case? You might find DLM Automation/PowerShell is a better option for you.Alex Yates
DevOps Mentor and Coach
Director of DLM Consultants
Creator of Speaking Mentors
Microsoft Data Platform MVP
Friend of Redgate
Twitter / LinkedIn