I info Jun 22, 2005 #1 Hi There is it possivle to startup an compact of an SQL CE Server programmatically ?
S Sergey Bogdanov Jun 22, 2005 #2 Try something like this: SqlCeEngine e = new SqlCeEngine(connectionString); e.Compact("Data Source=" + tempFile); e.Dispose(); File.Delete(dbFile); File.Move(tempFile, dbFile);
Try something like this: SqlCeEngine e = new SqlCeEngine(connectionString); e.Compact("Data Source=" + tempFile); e.Dispose(); File.Delete(dbFile); File.Move(tempFile, dbFile);