Backup and Restore a SQLCE .sdf database
Posted
by Ruben Trancoso
on Stack Overflow
See other posts from Stack Overflow
or by Ruben Trancoso
Published on 2009-11-04T04:32:23Z
Indexed on
2010/05/23
2:00 UTC
Read the original article
Hit count: 994
My application needs to backup and restore .sdf files. There is a single dataSet the the whole application and some bindngSource and table adapters on forms using this same dataset.
Just for a sake of test I tryied to copy the .sdf in runtime for a backup folder and back to restore it and I got my application not finding the file like it was not there anymore.
How should I manage connections to open and close the database since the dataSet do it automaticaly at begin and end of my application?
© Stack Overflow or respective owner