copy table from one db to another

  • in sql server 2000, whats the best and easisest way to copy all data from a given table from one db to another db.

    the table is the same name and same fields, just different data in the table.

  • There are lots of ways to do this.

    1) use INSERT ... SELECT. 

    If the two DBs are in the same server:

    INSERT NewTable (Field1, Field2,...)

    SELECT Field1,Field2,...

    FROM CurrentDB.Table

    If the two DBs are in the same server, u need to define a linked server.

    2) Use import/export wizard

    3) BCP

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

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