Click here to Skip to main content
15,892,298 members
Please Sign up or sign in to vote.
1.44/5 (3 votes)
See more:
hi all

i have a access database

how do create backup and restore method with csharp for it ?


please tell me simplest way with no error occurding when backup and restore ...

please help me

thanks a lot
Posted
Updated 7-May-13 7:50am
v2

The simplest way to backup/restore Access database is to use File.Copy[^] method ;)

More about copying/restoring access databases: Copy a database object[^]
Back up a database[^]

I recommend you to compact and repair database[^] before copying operation.

Please, see past answers/articles: c# backup and restore access database code?[^]
Compact and Repair Access Database using C# and late binding[^]
 
Share this answer
 
v2
 
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