备份SQL 2014数据库 [英] Backup an SQL 2014 database
本文介绍了备份SQL 2014数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在SQL Server 2014数据库中创建一个备份,我有2个问题,我想知道哪个是最好的简单方法(SMO或其他),并且想知道备份后的数据库是如何存在的,但是没有数据所以我可以重新输入数据,我想每六个月备份一次因为数据量大,数据库只包含字符和日期没有特殊数据(blob字段),我想从VB Net 2015开始。
我尝试了什么:
看过代码但未决定使用
I want to create a backup in an SQL Server 2014 database, I have 2 questions, I want to know which is the best and easy method (SMO or other) and want to know how the database after backup to exist but with no data so I can reenter data, I want to backup every six months because of volume of data, database contains only characters and dates no Special data (blob fields), I want to do it from VB Net 2015.
What I have tried:
seen code but undecided waht merhod to use
推荐答案
从代码进行备份时,请务必设置连接
和命令超时
连接到足够高的值,因为大型数据库的备份可能需要很长时间。
这是一种简单的备份方式: Backup&使用VB.NET恢复SQL Server数据库 [ ^ ]
要使用 SMO 编写数据库脚本,请参阅此文章: SCO教程3 - 脚本编写 [ ^ ]
When making backups from code be sure to set theConnection
andCommand timeout
of the connection to a high enough value as backups of big databases can take a long time.
Here is a simple way to make backups: Backup & Restore of SQL Server database using VB.NET[^]
To script the database using SMO, see this article: SMO Tutorial 3 of n - Scripting[^]
这篇关于备份SQL 2014数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文