Share via

DAPAC deployment publish profile drop objects not in source is not honoured

Karthick Babu 1 Reputation point
2020-10-07T14:07:34.663+00:00

Hi All,

In our SSDT solution, we set the publish profile xml property DropObjectsNotInSource to false. But its still dropping table columns and indexes in databases while deployment.

Is any workaround to overcome this issue?

Thanks in Advance.

SQL Server | Other
SQL Server | Other

Additional SQL Server features and topics not covered by specific categories

0 comments No comments

1 answer

Sort by: Most helpful
  1. Cris Zhan-MSFT 6,676 Reputation points
    2020-10-08T09:41:45.183+00:00

    Hi @Karthick Babu ,

    please refer to following similar posts:

    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/0518bff9-c5a0-4e5b-8610-2a74822440c9/dropobjectsnotinsource-false-so-why-is-the-script-trying-to-drop-columns?forum=ssdt
    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/7256b4f4-e16a-4279-8cfd-5b012f2b2c46/dac-package-is-dropping-my-indexes-that-are-not-in-dac-source?forum=ssdt


    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.

    Was this answer helpful?


Your answer

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