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 8694581
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T00:49:04+00:00 2026-06-13T00:49:04+00:00

We have a post deployment script in our visual studio database project. It populates

  • 0

We have a post deployment script in our visual studio database project. It populates lookup tables with data. The problem is that every time we change schema and generate update script, post deployment script gets appended to the end of the deployment script. Is there a way to mark specific post deployment scripts in VS2010 to run only once?

  • 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-13T00:49:05+00:00Added an answer on June 13, 2026 at 12:49 am

    Disclaimer: I am from ReadyRoll software which makes a commercial tool for database deployment.

    Neither the DataDude project system you are using nor the new SSDT projects support single-use scripts. The fact that these projects are declarative in nature means that, unless the tool has native support population of lookup tables with data (which it currently does not), the operation can only be performed using a “run always” Post-Deployment script.

    If you’re not using it already, you might consider using the MERGE statement for your lookup data deployments, if you’re deploying to SQL Server 2008 or higher. This gives you a somewhat declarative way of populating tables in that you don’t have to check whether the data is already inserted before deploying.

    If you’d like to try a project system that runs each script only once, you may like to consider the imperative approach (sometimes referred to as migrations). There is plenty of OSS around that does this, however you may like to consider ReadyRoll because of the fact that it integrates with Visual Studio:
    http://ready-roll.com

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

Sidebar

Related Questions

I have a post deployment script in my SQL database project, which registers default
I have an SQL 2008 database project in Visual Studio 2010 that is sync'ed
I am using visual studio 2010. I have a website project that I would
I have a Visual Studio 2010 Database project, from which I want to generate
I have a database and a database project in Visual studio 2010. I inferred
I have a post-build event that runs some commands for a c# project. The
I have read this post thoroughly: How does Visual Studio's source control integration work
I am using a SQL 2008 database project (in visual studio) to manage the
Visual Studio has a Database Project for Sql Server. This has a number of
I'm using a Database Project in Visual Studio 2010 to manage all of my

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.