如何在sqlserver 2005中将所有表转储到新数据库 [英] how to dump all the tables to new database in sqlserver 2005

查看:231
本文介绍了如何在sqlserver 2005中将所有表转储到新数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的朋友们,亲爱的朋友!



祝大家2013年新年快乐。



目前正在使用Sqlserver 2005数据库。我需要你们的帮助。



我有一个数据库(oldCollegeDB),里面有55个表。现在我想将这55个表转储到新数据库(NewCollegeDB)



请你帮我们,如何为此编写查询。



永远感谢!!。

解决方案

1。
备份oldCollegeDB数据库名称文件,例如。 oldCollegeDB.bak



2.

创建新数据库将其命名为NewCollegeDB



3.

现在,恢复 NewCollegeDB中的oldCollegeDB.bak 文件



快乐编码!

:)


使用复制数据库向导 [ ^ ]。


您是否尝试过生成db table'的脚本?您可以生成一个脚本来创建表,然后生成一个脚本来插入数据。



SP_ Genereate_Inserts [ ^ ]用于生成数据插入脚本。



- 或 -



您可以使用< a href =http://www.microsoft.com/en-us/download/details.aspx?id=5498> Microsoft SQL Server数据库发布向导 [ ^ ]



祝你好运,

OI


hello my dear frndz !

wishing you a happy new year 2013 to all of you.

presently am using Sqlserver 2005 database. i need help from you guys.

i have a database(oldCollegeDB) with 55 tables in it. Now i want to dump these 55 tables to new database (NewCollegeDB)

Please can you help me guys, how to write a query for this.

thanks for ever !!.

解决方案

1. take backup of oldCollegeDB database name file for,e.g. oldCollegeDB.bak

2.
create new database name it NewCollegeDB

3.
now, restore oldCollegeDB.bak file in NewCollegeDB

Happy Coding!
:)


Make use of the Copy Database Wizard[^].


Have you tried generating db table''s the scripts? You can generate a script to create the tables then generate a script to insert the data.

SP_ Genereate_Inserts[^] for generating the data insert script.

--OR--

You can use Microsoft SQL Server Database Publishing Wizard[^]

Good luck,
OI


这篇关于如何在sqlserver 2005中将所有表转储到新数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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