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

  • Home
  • SEARCH
  • 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 8931245
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T09:04:27+00:00 2026-06-15T09:04:27+00:00

I am using a SQL Server Compact database for a project I am working

  • 0

I am using a SQL Server Compact database for a project I am working on and have been having a hard time trying to insert data to the database.

My insert statement and everything is working fine and data gets inserted too and I can even do searches for the inserted data (while in the application).

The problem I am having is when I quit and re-run the application, it seems that the data was not inserted into the database and the tables are empty too.

Can anyone let me know where I am going wrong with this?

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-15T09:04:29+00:00Added an answer on June 15, 2026 at 9:04 am

    Could it be that the SDF file is overwritten with an empty version whenever you rebuild/run the application?

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

Sidebar

Related Questions

I had a program working with a database I created using SQL Server Compact
I have created a database and table using Visual Studio's SQL Server Compact 3.5
I using a sql-server compact database within a c# winform project. If I look
I'm wondering what the key differences between using a SQL Server Compact database (
My company is using SQL Server Compact to store and manage a local database
I am using MS SQL Server compact edition within a project. The client has
I have a SQL Server Compact Edition Database file, and I want to display
I'm trying to access a Sql Server Compact Database. It's a clickonce application, so
I am using WebMatrix with SQL Server Compact, and just have a simple question.
I'm currently using SqlMetal to generate a data context for a SQL Server Compact

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.