Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7883433
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T04:31:50+00:00 2026-06-03T04:31:50+00:00

What is the best practice of setting the DacUpgradeOptions.IgnoreDataLoss property in automatic Data-Tier Application

  • 0

What is the best practice of setting the DacUpgradeOptions.IgnoreDataLoss property in automatic Data-Tier Application (DACPAC) upgrades?

Based on the MSDN documentation (link), if IgnoreDataLoss is True, the upgrade will proceed even if some of the operations result in the loss of data. If False, these operations will terminate the upgrade. For example, if a table in the current database is not present in the schema of the new DAC, the table will be dropped if True is specified. The default value for this is True.

However, in the environment with continuous delivery where every database change is automatically deployed all the way up the pipeline (CI -> Test -> UI-Test) and eventually to Production environment, it seems like a safety measure to set IgnoreDataLoss is False, because we would not want data loss/drift to occur on the Production database. If IgnoreDataLoss is False and a developer commits a database change that introduces data loss, the CI/Test build will fail, allowing us to catch this before this change reaches Production.

There’s a problem with this approach though, as there are times when data loss is intentional. For example, we might need to delete a specific table that’s not being used anymore. If IgnoreDataLoss is False, this will fail the build and the DACPAC changes are never applied, because potential data loss is detected (even though such loss is intentional). In this scenario, we would want IgnoreDataLoss to be True.

Just wondering what would be the best practice for this, especially in an environment where we are deploying continuously and automatically. Any suggestion would be greatly appreciated. Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T04:31:52+00:00Added an answer on June 3, 2026 at 4:31 am

    In most cases, we can set IgnoreDataLoss to false. This helps to ensure we don’t accidently modifies the database and introduce data loss. When we want to delete a table, we can either manually delete the table (please do not use DACPAC). Or we can temporary set IgnoreDataLoss to true for that particular upgrade operation.

    Best Regards,

    Ming Xu.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Whats the best practice for setting up package structures in a Java Web Application?
Is the best practice of setting an alarm on OS X to create a
What's the best practice for setting zoom factor of an image within IKImageView via
What is a best practice when setting up subversion to use vendor branches? Our
I would like to know what's the best practice for setting up the distribution
In EF projects, Is there any best practice for setting AutomaticMigrationsEnabled ? More declaration:
What's the best practice for setting up a subversion repository on a linux development
What is the best practice on setting and keeping these global objects ? I
What is the best practice for setting up a background process that runs every
Is there a best practice when it comes to setting client side onclick events

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.