Tuesday, April 14, 2009

Creating Backup for access database by JRO object

public static bool createBackup(string src, string dst)
{
JRO.JetEngine oJetEngine = new JRO.JetEngine();
try
{
oJetEngine.CompactDatabase(src, dst);
return true;
}
catch
{ return false; }
}

1 comment: