Inserting the output of a query into a table created on a different server SQL Server 2008 -
i wondering if can guide me how can insert output of query table created on different server running query.
for example:
table located on server1 called tbl1 in database called database1.
the query running querying data located on server2.
for insert command, work: server1.database1.tbl1
if need more information please let me know.
as long can reach both servers, should easy enough:
insert server1.database1.dbo.tbl1(list of columns) select (list of columns) server2.database2.dbo.tbl2 (some condition here)
Comments
Post a Comment