Home Forums Programming General How to copy a table structure and data to a different server? RE: How to copy a table structure and data to a different server?

  • The script that generates out as individual INSERT scripts is going to be comparatively and, maybe, horribly slow. With that thought in mind, I recommend doing the right click thing to generate the script for the table creation and the use of BCP in the "native" mode to export the data to a disk and then import it using either BCP or BULK INSERT on the other server.

    If this is something that needs to be done on a regular basis, consider one form of replication or another.

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)