repair a sdf file?

  • Thread starter Thread starter sheng shan
  • Start date Start date
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!
 
Back
Top