如何保留数据库备份并还原它..?

编程入门 行业动态 更新时间:2024-10-25 22:31:16
本文介绍了如何保留数据库备份并还原它..?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

先生, 当我单击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 ?

更多推荐

如何保留数据库备份并还原它..?

本文发布于:2023-10-24 17:25:35,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1524554.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:备份   数据库

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!