-1

how i can copy data from a table on server1 to another table on server2 using query?

jarlh
  • 40,041
  • 8
  • 39
  • 58

1 Answers1

0
INSERT INTO [server2].[database].[schema].[table]
( col1, col2, col3...)
SELECT
( col1, col2, col3...)
FROM [server1].[database].[schema].[table]

server2 would need to be a linked server

Mazhar
  • 3,757
  • 1
  • 11
  • 28