如何在sqlserver 2005中将一个数据库表复制到另一个数据库 [英] How to copy one database tables to another database in sqlserver 2005

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

问题描述

亲爱的朋友,

我的SqlServer 2005中有两个数据库.

例如:我有Database(SchoolDB)和另一个Database(CollegeDB)

现在,我需要从这两个数据库中建立一个数据库.....确定.

我的要求是:在CollegeDB中,我有两个表StudentInformation和TeachersInformation.所以我必须将这两个表及其所有数据复制到SchoolDB数据库中.


请任何人可以帮助我,该怎么做.


永远感谢.

Dear Friends,

I have Two databases in my SqlServer 2005.

For Example : I have Database(SchoolDB) and another Database(CollegeDB)

Now From these Two DATABASES I need to make One Database.....OK.

My requirement is : In CollegeDB i have two Tables StudentInformation and TeachersInformation. So i have to copy these two tables to SchoolDB Database with all the data in it.


Please can anybody help me, how to do this.


THANKS FOR EVER.

推荐答案


U可以将这些表导入您新创建的数据库中.
步骤:
1)右键单击您新创建的数据库.
2)选择任务>>导入数据.
3)提供您的源数据库名称和目标数据库名称.
4)选择要导入的表.

通过这种方式,您可以获得具有相同数据类型和内容的表.
Hi,
U can import those table in your newly created database.
Steps :
1) Right click on your newly created database.
2) select Task >> Import data.
3) provide your source database name and target database name.
4) select tables that you want to import.

in this way you can get tables with same datatypes and constaints.


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

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