如何将Sql Server备份到sql文件? [英] How to backup Sql Server to sql file?
本文介绍了如何将Sql Server备份到sql文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在备份"中,我只得到一个bak文件,但是我想创建.sql文件
In "Back UP" I only get a bak file, but I would like to create .sql file
推荐答案
推荐使用SQL Server的生成脚本"
Use SQL Server's Generate Scripts commend
- 右键单击数据库;任务->生成脚本
- 选择表,然后单击下一步"
- 点击高级"按钮
- 找到要编写脚本的数据类型-选择架构和数据.
- 然后您可以选择保存到文件或放入新的查询窗口.
- 为项目符号2中选择的所有表数据生成
CREATE
和INSERT
语句.
- right click on the database; Tasks -> Generate Scripts
- select your tables, click Next
- click the Advanced button
- find Types of data to script - choose Schema and Data.
- you can then choose to save to file, or put in new query window.
- results in
CREATE
andINSERT
statements for all table data selected in bullet 2.
这篇关于如何将Sql Server备份到sql文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文