SQL CE Compact

  • Thread starter Thread starter info
  • Start date Start date
Try something like this:

SqlCeEngine e = new SqlCeEngine(connectionStr­ing);
e.Compact("Data Source=" + tempFile);
e.Dispose();

File.Delete(dbFile);
File.Move(tempFile, dbFile);
 
Back
Top