May 15, 2013 at 7:12 am
This might be the dumbest question ever, but I really don't know/remember how this is done.
Let's say you've got 2 servers, S1 and S2. In S1 you've got the source table with the values you want to transfer to a target table in S2.
Assuming S2 already has the table created (easily done by Right click>Script table as...>CREATE), how do you copy one table to another?
I thought this was as easy as using the Script table as...>INSERT, but that doesn't work: it throws an error, and when you are on a different server the values don't display after the VALUES reserved word.
I know I can import the data, but what I'd like is to copy the data using SQL and referencing server S1.
Any suggestions on how to do this? Thanks,
May 15, 2013 at 7:22 am
Can use Export. Right click on the source database, then Tasks>Export Data...
May 15, 2013 at 7:28 am
Thanks, but as I said, I thought there could be another method (ideally, SQL referencing the server name).
Is this possible?
May 15, 2013 at 7:44 am
May 16, 2013 at 1:33 am
You can link the two servers as linked servers. Then tables can be accessed as per your requirement. It is better to export the table as a file from one server using bcp out and load that using bcp in in target database server.
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply