MsDeploy dbDacFx提供程序:尝试导出我的数据库中不存在的表

时间:2016-03-15 09:09:09

标签: msdeploy

当我尝试将数据库同步到文件时 - 它失败并显示错误:

  

Microsoft.Web.Deployment.DeploymentException :(3/15/2016 12:00:11 PM)在远程计算机上处​​理请求时发生错误。 ---> System.Exception:调用目标抛出了异常。 ---> System.Exception:为数据导入或导出指定了具有模式“dbo”和名称“dtproperties”的表,但在数据库模式中不存在。

我的数据库中没有这样的表。

这是我正在使用的命令

  

“C:\ Program Files \ IIS \ Microsoft Web Deploy V3 \ msdeploy.exe”-Verb:Sync -Source:dbDacFx =“Data Source = db1 \ sql2012; Database = Sitecore_Core; User ID = sa; Password = very_extra -securie-pws“,computername =”https://mytargetcomp.local:8172 / msdeploy.axd?site = some-site“,username = administrator,password = adminOasssa,authtype = basic -allowuntrusted -Dest:dbDacFx = c: \ Northwind.dacpac -debug

ADD 1: 我试图添加由chief7属性提议:

  

“C:\ Program Files \ IIS \ Microsoft Web Deploy V3 \ msdeploy.exe”-Verb:Sync -Source:dbDacFx =“Data Source = db1 \ sql2012; Database = Sitecore_Core; User ID = sa; Password = very_extra -securie-pws“,IgnoreExtendedProperties = true,DropExtendedPropertiesNotInSource = true,computername =”https://mytargetcomp.local:8172 / msdeploy.axd?site = some-site“,username = administrator,password = adminOasssa,authtype = basic - allowuntrusted -Dest:dbDacFx = c:\ Northwind.dacpac -debug

但仍然是同样的失败。

ADD 2: 我认为问题可以在WmSvc中,但是,即使在本地执行 - 我仍然遇到跟随cmd的这个问题:

  

msdeploy.exe -Verb:Sync -Source:dbDacFx =“Data Source = db1 \ sql2012; Database = SiteCore_Core; User ID = sa; Password = password”,IgnoreExtendedProperties = true,DropExtendedPropertiesNotInSource = true -Dest:dbDacFx = d :\ Northwind.dacpac,IgnoreExtendedProperties = true,DropExtendedPropertiesNotInSource = true -debug

1 个答案:

答案 0 :(得分:1)

这是一张系统表。您可以通过添加以下标志(或类似标志)来配置MSDeploy以忽略它。

-Dest:dbDacFx=c:\Northwind.dacpac,IgnoreExtendedProperties=true

我不肯定这是使用的确切属性,但我相信如此。完整列表位于 - https://msdn.microsoft.com/en-us/library/microsoft.sqlserver.dac.dacdeployoptions.aspx