Page 1 of 1

How to keep access databases changes in executable file?

Posted: Thu Jun 01, 2017 6:23 pm
by saedbfd
I am working on a desktop project with c# with Access database. Now I have finished my project and I need to have an executable file contains all the components and ddls and my access database of my project. In other words, I want an executable file runs portable. Fortunately I was able to create this portable executable file by Enigma Virtual Box and my project works fine on all windows without any installed.

But there is a problem that i could not solved it. when i inserted or updated or deleted any record in access database every thing is fine. but when i close my application and run again Everything is back to normal.

In other words, when I run the application previous database copied again in executable file.

In this case one can not help?

Re: How to keep access databases changes in executable file?

Posted: Fri Jun 02, 2017 2:58 am
by Ilya
After any change of data base you must rebuild exe file, you can't save changes in exe file. So dont pack database.

Re: How to keep access databases changes in executable file?

Posted: Fri Jun 02, 2017 10:15 am
by saedbfd
ohhh thanks
I create my project completely but I did not care to this topic :?
thanks a lot