如何保留数据库备份并还原它..? [英] How to keep backup of a database and restore it..?

查看:114
本文介绍了如何保留数据库备份并还原它..?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

先生,
当我单击Windows窗体的按钮时,我想保留数据库的备份.但是根据用户的选择,包括表和数据库在内的所有数据都应存储在驱动器内的文件夹中.

当该用户想要还原它时,应该假定他/她单击还原"按钮,并且应该在该旧数据库中创建带有表的所有数据.

帮帮我.......

sir,
i want to keep a backup of a database when i click on a button of windows form. but all the data including tables & database should be stored in a folder inside a drive according to the user''s choice.

when that user will want to restore it then he/she should be supposed to click on restore button and all the data with tables should be created inside that old database.

help me.......

推荐答案

好吧,很明显,你没有完成这项任务,b/c甚至没有给我们足够的信息以帮助您.对于初学者来说,这是一种什么样的数据库?如果是Access,则可以通过复制MDB文件来进行备份.否则,如果您通过SQL进行备份,则只需编写SQL并执行它即可.正如其他人所说,您尝试过什么吗?您是否知道有关如何备份数据库的任何信息?
Well, it''s clear you are not up to this task, b/c you don''t even give us enough info to be a ble to help you. For starters, what sort of DB is it ? If it''s Access, you can make a backup by making a copy of the MDB file. Otherwise, if you make a backup through SQL, you just write the SQL and execute it. As others said, have you tried anything ? Do you know anything about how to backup a DB ?


这篇关于如何保留数据库备份并还原它..?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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