将数据从一个表复制到另一台服务器的另一表 [英] Copy data from one table to other table from different server

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

问题描述

你好朋友,
我正在尝试将数据从一个表复制到另一个表,两个表都存在于不同的数据库中.我尝试了以下

insert into DB1..tbl_jobcategory select * from DB2..tbl_jobcategory

但它不起作用.任何可以帮助我解决此问题的人.

在此先感谢

Hello friends,
I''m trying to copy data from one table to other, both table exist in different Database. I tried following

insert into DB1..tbl_jobcategory select * from DB2..tbl_jobcategory

But its not working. Anyone who can help me in sorting out this.

Thanks in advance

推荐答案

尝试此

选择*从DB2.dbo.Temp2进入DB1.dbo.Temp1

否则,请尝试该链接

将数据从一个表复制到另一个表 [
try this

SELECT * INTO DB1.dbo.Temp1 FROM DB2.dbo.Temp2

otherwise try that link

Copy Data from one table to another [^]


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

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