CompactDatabase needs a Flush ?

P

Peter

Hey,

I am using the CompactDatabase method of the DBEngine on every system startup.
The system is running on XPe and so I can not be sure that a proper system
shutdown will always be done. Sometimes the system will be shut off by a
simple switch off of the PC.
So to be sure that the new created database is not still in some file-buffer
and not already written to the harddrive, do I need a Flush of the compacted
and new created database to be sure that it really reaches the harddrive ?
Does the CompactDatabase method already write through the File Buffer ?
Or do I have to open the file again with the flags FILE_FLAG_WRITE_THROUGH ?
Or do I have to run the FlushFileBuffers method ?

By the way the buffering of the harddisk itself is already disabled.
All I have to take care about is the buffering on the software side.

Thank's for any info.
Peter
 

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