SQL Data Transfer

后端 未结 6 394
天命终不由人
天命终不由人 2021-01-14 05:03

I need to transfer data from one table to the same table in another server which has been truncated. What is the easiest way to do this?

6条回答
  •  野的像风
    2021-01-14 05:17

    Setup linked servers and then use the following on the destination database:

    INSERT INTO existingTable (col1,col2..)
    
    SELECT col1,col2...
    FROM linkedserver.dbo.database.othertable
    

提交回复
热议问题