how to copy table from differet server

  • how to copy data from table, from one server to another server. using simple query.

    i give example in one server

    insert into test..categories from select * from northwind..categories.

    in my case i use different server. so how to do it, only using simple query.

  • Add the Server1 as linked server to Server2, using sp_addlinkedserver.

    In Server2 Query Analyzer

    sp_addlinkedserver 'server1'

    Then in Server2 Queryanalyzer use this query to get the data

    Select * from Server1.northwind.dbo.[tablename]

     

    Regards,

    Ramesh K

  • OR you could use the import/export wizard OR a DTS package with copy objects OR ....



    Good Hunting!

    AJ Ahrens


    webmaster@kritter.net

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply