Working with PowerShell/CLI
hi,
Trying to automate the schema compare function. I used the wizard to generate the CLI Script.
It's comparing script folder to an Azure Sql DB. The script generated is the following:
&"C:\Program Files\Devart\dbForge SQL Tools Professional\dbForge Schema Compare for SQL Server\schemacompare.com"
/schemacompare
/source scriptsfolder:"C:\src\sql"
/target connection:"Data Source=mytestdb.database.windows.net;Initial Catalog=mytestdb;Authentication=""Microsoft Entra Default"""
/report:"Report_DBForge" /reportformat:html /includeobjects:All /filter:"C:\Object_Filter.scflt"
When I attempt to run this from a powershell window, I get the following error:
Not sure why it's complaining about the /target switch when that's what the schema compare wizard generated...
Any advice on how to proceed?