visual-studio-2012 - 为什么我的 SqlPackage DeployReport 返回空报告?

标签 visual-studio-2012 sql-server-data-tools

我正在尝试使用 SqlPackage.exe 运行 DeployReport 操作,但它返回了一个空报告,这是我没想到的,因为我已经删除了几个 View 和 SProc(它通过在 Visual Studio 中运行比较操作来显示)。
根据docs , DeployReport 应该

DeployReport: Creates an XML report of the changes that would be made by a publish action.



我将 VS2012 用于数据库项目的 2008 R2 SQL 服务器。
这是命令:
SqlPackage.exe /action:DeployReport /TargetDatabaseName:MyDb /TargetServerName:myServer /TargetUser:user /TargetPassword:password /SourceFile:c:\path\to\project\bin\Debug\project.dacpac

这是生成的报告:
<?xml version="1.0" encoding="utf-8"?><DeploymentReport xmlns="http://schemas.microsoft.com/sqlserver/dac/DeployReport/2012/02"><Alerts /></DeploymentReport>

最佳答案

像这样尝试:

SqlPackage.exe /action:DeployReport /TargetConnectionString:"{connection string}" /SourceFile:"{dacpac file}" /OutputPath:"{output file}"

关于visual-studio-2012 - 为什么我的 SqlPackage DeployReport 返回空报告?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21110955/

相关文章:

powershell - 在 Visual Studio Nuget 包管理器控制台中中止 "unclosed"powershell 命令

c# - 在 C# 中使用 sqlcommand 执行查询时出错

sql-server - 更改现有 VIEW 的 SCHEMABINDING

ssis - SSIS 中的 SFTP 文件传输

visual-studio-2012 - 默认为 Visual Studio 2012 数据库项目中的 T-SQL Pane View

visual-studio - 将 Visual Studio 2012 导出为 2010 sln 格式

asp.net-mvc - mvc4 + 编译错误信息 : CS1963: An expression tree may not contain a dynamic operation

c# - visual studio Word Addin 需要超过 15 秒才能关闭 word

sql-server - 将 Dacpacs 部署到锁定生产中的可用性组

visual-studio-2012 - 报表预览找不到数据源文件夹