A
Alina
Hi
I try to compact a big SQL CE DB (about 300MB) on WinCE 4.2:
....
string src = textBoxDBName.Text;
string dest = textBoxTemp.Text;
string pswd = textBoxPswd.Text;
if (File.Exists(dest))
{
File.Delete(dest);
}
SqlCeEngine engine = new SqlCeEngine("Data Source = " + src + ";" +
"Password = " + pswd);
engine.Compact("Data Source = " + dest);
engine.Dispose();
File.Delete(src);
File.Move(dest, src);
The error I get at the Compact() method execution:
Application Try.exe has preformed an illegal operation and will be shut
down. If the problem
persists, contact the program vendor. Exception: 0xC0000005
Address:FFFFFFE4.
Thank you for any suggestion.
I try to compact a big SQL CE DB (about 300MB) on WinCE 4.2:
....
string src = textBoxDBName.Text;
string dest = textBoxTemp.Text;
string pswd = textBoxPswd.Text;
if (File.Exists(dest))
{
File.Delete(dest);
}
SqlCeEngine engine = new SqlCeEngine("Data Source = " + src + ";" +
"Password = " + pswd);
engine.Compact("Data Source = " + dest);
engine.Dispose();
File.Delete(src);
File.Move(dest, src);
The error I get at the Compact() method execution:
Application Try.exe has preformed an illegal operation and will be shut
down. If the problem
persists, contact the program vendor. Exception: 0xC0000005
Address:FFFFFFE4.
Thank you for any suggestion.