使用SqlPackage.exe的数据库部署失败,并显示“部署计划验证失败”错误消息

时间:2020-05-28 16:42:11

标签: sql-server dacpac sqlpackage database-deployment ssdt-2017

在我们的应用程序安装中,数据库部署是使用sqlpackage.exe完成的。我们将DACPAC文件和sqlpackage.exe打包在应用程序安装程序中,并从命令行执行。没有任何问题,已部署在数十个SQL Server实例中。但是,使用以下日志在我们的一个客户SQL实例中部署失败

HTMLLogger [05/22/2020 10:34:53.329]: Command: SqlPackage.exe
HTMLLogger [05/22/2020 10:35:28.323]: Publishing to database 'xxxxxx' on server 'TestServer\TestInstance'.
HTMLLogger [05/22/2020 10:35:28.323]: Initializing deployment (Start)
HTMLLogger [05/22/2020 10:35:28.323]: *** The object [xxxxxx] exists in the target, but it will not be dropped even though you selected the 'Generate drop statements for objects that are in the target database but that are not in the source' check box.
HTMLLogger [05/22/2020 10:35:28.323]: *** The object [xxxxxx_log] exists in the target, but it will not be dropped even though you selected the 'Generate drop statements for objects that are in the target database but that are not in the source' check box.
HTMLLogger [05/22/2020 10:35:28.323]: Initializing deployment (Complete)
HTMLLogger [05/22/2020 10:35:28.323]: Analyzing deployment plan (Start)
HTMLLogger [05/22/2020 10:35:28.339]: Analyzing deployment plan (Failed)
HTMLLogger [05/22/2020 10:35:28.339]:
HTMLLogger [05/22/2020 10:35:28.339]: [ERROR] *** Verification of the deployment plan failed.
HTMLLogger [05/22/2020 10:35:28.339]: [ERROR] Warning SQL72012: The object [xxxxxx] exists in the target, but it will not be dropped even though you selected the 'Generate drop statements for objects that are in the target database but that are not in the source' check box.
HTMLLogger [05/22/2020 10:35:28.339]: [ERROR] Warning SQL72012: The object [xxxxxx_log] exists in the target, but it will not be dropped even though you selected the 'Generate drop statements for objects that are in the target database but that are not in the source' check box.
HTMLLogger [05/22/2020 10:35:28.339]: [ERROR] Error SQL72032: If this deployment is executed, will be dropped and not re-created.
HTMLLogger [05/22/2020 10:35:28.339]: [ERROR] Error SQL72032: If this deployment is executed, will be dropped and not re-created.
HTMLLogger [05/22/2020 10:35:28.339]: [ERROR] Error SQL72032: If this deployment is executed, will be dropped and not re-created.
HTMLLogger [05/22/2020 10:35:28.339]: [ERROR] Error SQL72032: If this deployment is executed, will be dropped and not re-created.
HTMLLogger [05/22/2020 10:35:28.339]: [ERROR] Error SQL72032: If this deployment is executed, will be dropped and not re-created.
HTMLLogger [05/22/2020 10:35:28.339]: [ERROR]
HTMLLogger [05/22/2020 10:35:28.339]: [ERROR]
HTMLLogger [05/22/2020 10:35:28.339]: Reset SQL Connection after deployemnt

错误日志未提供验证失败的任何详细信息。有谁知道可能的原因以及如何解决这个问题。

感谢您抽出宝贵的时间阅读本文章。

0 个答案:

没有答案