Home > Database > Mysql Tutorial > body text

sql server中通过查询分析器实现数据库的备份与恢复方法分享

WBOY
Release: 2016-06-07 18:05:46
Original
1207 people have browsed it

sql server中通过查询分析器实现数据库的备份与恢复方法分享,需要备份或还原数据库的朋友可以参考下

sql server的备份与恢复(查询分析器)

查询分析器:
命令:
1:备份数据库命令:
backup database whdb1(要备份的数据库名) to disk='d:/zwh.bak';

2:恢复数据库命令:
restore database whdb1(要恢复的数据库名) from disk='d:/zwh.bak';

3: 备份表的命令:

select * into share_20090605(备份的数据) from share(表名);

作者 庄伟鸿
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!