Click here to Skip to main content
15,912,400 members
Please Sign up or sign in to vote.
4.00/5 (2 votes)
See more:
how to take backup of Ms Access database using c# window application
Posted

To back up Ms Access you just need to copy it into destination location. that's it.

Use save file dialogue box to select destination folder and file name.

C#
private void TakeBackup(string destPath)
{
string source = Application.StartupPath + @"\MyDatabase.mdb";
string destination = destPath;


System.IO.File.Copy(source, destination, true);

}


I hope this will haelp you
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900