Home  >  Article  >  Database  >  SQLserver 2008 将数据导出到Sql脚本文件的方法

SQLserver 2008 将数据导出到Sql脚本文件的方法

WBOY
WBOYOriginal
2016-06-07 15:51:241569browse

请看下面的操作图解。 1.使用Sql Server Management Studio2005 连接数据库。 使用2008是在高级选项里选择,导出的类型:架构和数据此项 2.选中要导出数据的数据库节点,点鼠标右键,在菜单中选择任务-生成脚本,如图: 3。在弹出的界面中,点2次下一步进入

请看下面的操作图解。

1.使用Sql Server Management Studio 2005 连接数据库。

使用2008是在高级选项里选择,导出的类型:架构和数据此项

2.选中要导出数据的数据库节点,点鼠标右键,在菜单中选择“任务”->“生成脚本”,如图:

SQLserver 2008 将数据导出到Sql脚本文件的方法

 

3。在弹出的界面中,点2次“下一步”进入如图界面中,把“编写数据的脚步”置为true。

SQLserver 2008 将数据导出到Sql脚本文件的方法

 

4。其它的操作点“下一步”即可。下图是最后生成的Sql脚本:

SQLserver 2008 将数据导出到Sql脚本文件的方法

 

注意:这里一定要使用Sql Server Management Studio 2008,其它版本不行。

Statement:
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