将数据从一个数据库传输到另一个数据库 [英] Transfer data from one database to another database

查看:70
本文介绍了将数据从一个数据库传输到另一个数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何从一个数据库中获取数据并插入到另一个数据库表中?我不能这样做.请帮助我将数据从一个传输到另一个.

How to fetch the data from one database and insert in to another database table? I can't to do this. Please help me in transferring data from one to another.

推荐答案

有几种方法可以做到这一点,下面是两个选项:

There are several ways to do this, below are two options:

选项 1- 右键单击​​要复制的数据库

Option 1 - Right click on the database you want to copy

  • 选择任务">生成脚本"

  • Choose 'Tasks' > 'Generate scripts'

'选择特定的数据库对象'

'Select specific database objects'

检查表格"

标记保存到新查询窗口"

Mark 'Save to new query window'

点击高级"

将脚本的数据类型"设置为架构和数据"

Set 'Types of data to script' to 'Schema and data'

下一个,下一个

您现在可以在新数据库上运行生成的查询.

You can now run the generated query on the new database.

选项 2

  • 右键单击要复制的数据库

  • Right click on the database you want to copy

任务">导出数据"

下一个,下一个

选择要将表复制到的数据库

Choose the database to copy the tables to

标记从一个或多个表或视图复制数据"

Mark 'Copy data from one or more tables or views'

选择要复制的表格

完成

这篇关于将数据从一个数据库传输到另一个数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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