Hello. I working on my Library software and I using database for my project. When i click save icon I save my record and when I close program and open it again, database is empty. All my records always gone! But when i create new project again and make new database it works fine. But i don't want to make this software again because is 95% finished. Is here any way to fix it without working on my program from start?


5 Years
Discussion Span
Last Post by Netcode

If your database is part of your project, be sure to set Copy To Output Directory to Copy If Newer if your database has initial data in it. If you are debugging the project and filling data, then rebuild, your database will always be overwitten. In that case, set the Copy To Output Directory to Never. Notice that when you add more tables to the database, it will not be copied.

Votes + Comments
Thank you. You helped me a lot! I finaly fixed it! :D
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.