What is the syntax for adding multiple arguments onto the “Variables” parameter in sqlpackage.exe?

混江龙づ霸主 提交于 2019-12-04 05:18:51

I have managed to find something that works.

sqlpackage.exe ...args go here... /Variables:VarToOverride=Value1 /Variables:Var2ToOverride=Value2

It's not exactly what I was looking for, but it works.

Did you try separating using semi-colons rather than commas. i.e.:

sqlpackage.exe ...args go here...  /Variables:VarToOverride=Value1;Var2ToOverride=Value2

Your other option is to use Publish Profile files.

You can specify the multiple arguments as below. /p:CreateNewDatabase=True /p:Storage=File /p:DatabaseEdition=Standard /p:DatabaseServiceObjective=S3 /p:DatabaseMaximumSize=50 Giving space after each argument.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!