复制整个数据库 [英] Copy entire database

查看:97
本文介绍了复制整个数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!我目前正在开发库存系统。我的系统不支持任何硬删除。我想要包括备份整个数据库的功能,然后清除数据库以获取新记录。但我只是不知道如何编写复制数据库的代码。有关如何做到这一点的任何想法?谢谢你们!

Hello guys! I am currently developing an inventory system. My system don''t support any hard deleting. I wanted to include the feature of backing up the entire DB then clear the database for new records. But I just don''t know how to code the copying DB. Any idea on how to do this? Thanks guys!

推荐答案

看看这个:用C#备份SQL数据库 [ ^ ] - 它在C#中,但代码非常明显且易于翻译。
Have a look at this: Backing up an SQL Database in C#[^] - it''s in C#, but the code is pretty obvious and simple to translate.


这篇关于复制整个数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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