repair a sdf file?

S

sheng shan

Hi all,
We know there'a method "DBEngine.RepairDatabase" could repair an
access data file,but access is not supported in ce.net anymore,we have
to use .sdf or .xml file to read &write data instead.my question is:how
to repair a sdf or xml file which is damaged(e.g. caused by sudden power
off when being written) .I know there's only a method "compactdatabase"
which can reduce the file size.In my app,the data file could be possibly
damaged because of unexpected power off.if there's no such a method or
function,is there any other solution for my problem?
please help!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top