如何备份来自vb.net 2005的访问数据 [英] how to make backup of data of access from vb.net 2005

查看:77
本文介绍了如何备份来自vb.net 2005的访问数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经完成了所有编码,但是我不知道如何将存储在d:\驱动器中的数据备份到其他驱动器或在任何位置复制它.......

i had done all the codings but i dont no how to make backup of data stored in d:\ drive to other drive or copy of it in any where .......
help me out with some coding

推荐答案

如果使用Access数据库,您可以将数据库复制到另一个位置.

请参阅system.io.file命名空间

(请查看复制方法)
If your using a access database you can just copy the database to another location.

See the system.io.file namespace

(look at the copy method)


使用系统.IO.File.Copy(@"D:\ dbsample.mdf",@"C:\ dbsample.mdf",true);
Use System .IO.File.Copy( @"D:\dbsample.mdf",@"C:\dbsample.mdf",true );


这篇关于如何备份来自vb.net 2005的访问数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆