-1

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

jarlh
  • 42,561
  • 8
  • 45
  • 63
Mahdi Bagheri
  • 23
  • 1
  • 7

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,797
  • 1
  • 12
  • 29