gpt4 book ai didi

cmd - sqlpackage.exe 发布连接异常

转载 作者:行者123 更新时间:2023-12-04 07:35:33 34 4
gpt4 key购买 nike

我正在尝试使用 sqlpackage发表思想的工具CMD :

sqlpackage /action:Publish /SourceFile:"Database Services\bin\Release\Database Services.dacpac" /TargetDatabaseName:test /TargetConnectionString:"Data Source=TEST05,123;Integrated Security=True;Persist Security Info=False;Pooling=False;MultipleActiveResultSets=False;Connect Timeout=60;Encrypt=False;TrustServerCertificate=False"
我得到这个异常(exception):
** The TargetConnectionString argument cannot be used in conjunction with any other Target database arguments.
我不明白这是什么意思,我可以使用 msbuild 更早地部署它:
msbuild "Database Services\Database Services.sqlproj" /t:deploy /p:Configuration=Release /p:TargetConnectionString="Data Source=TEST05,123;Integrated Security=True;Persist Security Info=False;Pooling=False;MultipleActiveResultSets=False;Connect Timeout=60;Encrypt=False;TrustServerCertificate=False" /p:BlockOnPossibleDataLoss=False /p:TargetDatabase="test"
我发现了一个可能相关的线程:
https://stackoverflow.com/a/52924779/11705021

最佳答案

在此 article 之后,我能够使用以下语法进行发布:

sqlpackage /action:Publish /SourceFile:"Database Services\bin\Release\Database Services.dacpac" /TargetConnectionString:"Data Source=TEST05,123;Integrated Security=True;Persist Security Info=False;Pooling=False;MultipleActiveResultSets=False;Connect Timeout=60;Encrypt=False;TrustServerCertificate=False;Initial catalog=test"

关于cmd - sqlpackage.exe 发布连接异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67759635/

34 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com