copy tables with indexes

  • Hi all, I like to copy a large table(14 million records) along with it indexes from database A to database B.  What is a better approach?  Thanks in advance!

  • The better approach is to provide a bit more information

    What servers are you running? Are the databases on the same server? How much data is in each row?

    The more details along these lines the better.

     

    --------------------
    Colt 45 - the original point and click interface

  • I am running on SQL Server 2000.  Thy are both residing on the same server.  Record or row length is 2510 bytes.  Thanks! 

  • Bulk-copy into new tables (no indexes), and then create the indexes following.

    Regards, Melissa

  • Any way to copy table along with indexes?  Thanks!

  • Create table with index, then bcp (export/import); however, the bcp process will take *much* longer.

    It is more efficient to create the tables afterwards.

    Regards, Melissa

  • Thanks!  I'll give that a try.

  • Did you mean create the indexes afterwards?

Viewing 8 posts - 1 through 7 (of 7 total)

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