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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T05:18:20+00:00 2026-06-08T05:18:20+00:00

I have a project with a SQL Server Compact database included. I build the

  • 0

I have a project with a SQL Server Compact database included.

  1. I build the solution it is built into bin/Release.
  2. I then publish the project from bin/Release to a file server directory where I install it.
  3. I then add some rows to the database in the published application file via its a Winforms then its database gets updated with these additional rows.
  4. I then go back to the solution in Visual Studio and add some buttons to the form and also add some rubbish records to its database.
  5. I then rebuild and publish this new version to the file server and run the application

What I notice is that the new buttons from 4 are now on the form but the rubbish rows I added in 4 are not – the db is preserved in the state I left it in 3.

Is there a setting, in the solution, that I can change so that rather than the application databases being preserved they get overwritten by the database in solutions bin/Release files ?

  • 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-08T05:18:21+00:00Added an answer on June 8, 2026 at 5:18 am

    Right click on the database file in visual studio and under the “Copy to Output Directory” field select “Copy always”. This will replace the database file in your bin/Release folder with the one in the project folder every time you rebuild the project.

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

Sidebar

Related Questions

I have created SQL Server 2008 Database project using visual studio 2010. after build
I have an ASP.NET MVC project that uses a SQL Server Compact database. I
I have a project in C# with a Sql-server Database. In that database I
I have my project in .NET that uses a database in SQL Server. I'm
I have SQL Server Compact 3.5 database that contains account information. But everytime I
I using a sql-server compact database within a c# winform project. If I look
I have a Sql Server reporting services project. I have a dataset query called
I have two SQL Server (2000) databases. Both are used for the same project,
I use LINQ-SQL as my DAL, I then have a project called DB which
I have the following code to connect to a sql server compact edition 2008:

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.