如何在c#vb.net应用程序中备份访问数据库 [英] How to take backup of access database in c# vb.net application
本文介绍了如何在c#vb.net应用程序中备份访问数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
hi
i想要备份访问数据库文件,这意味着当我们选择按钮然后完成demo.mdb文件被复制到其他位置那么代码是什么?
hi
i want to take backup of access database file that means when we select on button then complete demo.mdb file is copied into other location so what is code for that ?
推荐答案
System.IO.File.Copy("old file path", "new file path", true);//true to override destination file
http://msdn.microsoft.com/en-us/library/cc148994.aspx [ ^ ]
这篇关于如何在c#vb.net应用程序中备份访问数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文