What is wrong with my below code? I am trying to write a batch file to publish a Database project. If I hard code the patch and file locations it works fine. But some how I am not able to get this working. The error I get is
*** Argument 'SourceFile' has an invalid value: ''.
*** Argument 'Profile' has an invalid value: ''.
I have the following code currently.
SET SourceCodePath = "C:\SourceCode\Dev\Code"
SET DACPACPath = %SourceCodePath%\Source\Data Service\SQL2014\bin\Debug\SQL2014.dacpac
SET ProfilePath = %SourceCodePath%\Data Service\SQL2014\SQL2014.Local.publish.xml
ECHO %ProfilePath%
ECHO %DACPACPath%
"c:\Program Files (x86)\Microsoft SQL Server\120\dac\bin\SqlPackage.exe" /Action:Publish /SourceFile:%DACPACPath% /Profile:%ProfilePath%
PAUSE