Share via

SqlPackage DeployReport returning an empty report

arielman2304 676 Reputation points
Jun 14, 2021, 9:45 AM

Hi,
I'm running the command:

sqlpackage /action:DeployReport /SourceFile:"Database Services\bin\Debug\Database Services.dacpac" /TargetServerName:TEST05,123 /TargetDatabaseName:test /OutputPath:"DeployReport.xml"

But I'm getting empty xml:

<?xml version="1.0" encoding="utf-8"?><DeploymentReport xmlns="http://schemas.microsoft.com/sqlserver/dac/DeployReport/2012/02"><Alerts /></DeploymentReport>

I saw similar question here, but the solution didn't help me

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
14,494 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. CarrinWu-MSFT 6,891 Reputation points
    Jun 15, 2021, 2:37 AM

    Hi @arielman2304 ,

    Welcome to Microsoft Q&A!

    It seems that you didn't Specify a clear path. Please refer to this blog, see below:

    sqlpackage  
    /action:DeployReport  
    /SourceFile:”C:\temp\SnapshotV1.dacpac”  
    /TargetFile:”C:\temp\SnapshotV2.dacpac”  
    /TargetDatabaseName:SQLShackDemoDB  
    /OutputPath:”C:\temp\DeployReport.xml”  
    

    Best regards,
    Carrin


    If the answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  2. CarrinWu-MSFT 6,891 Reputation points
    Jun 16, 2021, 6:28 AM

    Hi @arielman2304 ,

    Have you try to add /TargetUser: and /TargetPassword: on command line? Please refer to this blog and this link, see below:
    106018-sqlpackage.png

    /TargetUser: For SQL Server Auth scenarios, defines the SQL Server user to use to access the target database.

    /TargetPassword: For SQL Server Auth scenarios, defines the password to use to access the target database.

    Best regards,
    Carrin


    If the answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.