I am using SQL Server 2012
and I need to write a T-SQL query (that I will use as a SQL job) to copy a table (say, T1
) located in a database (say, db1
) on a linked Server to another database (say, db2
).
Table T1
does not currently exist in database db2
.
Assuming the table schema of T1
on the linked server is [xxx.xx.x.xx].db2.dbo.T1
, how do I write this T-SQL query?