restore a single table

  • Guys how do you go about restoring a single table from a backup? As of right now I restore the backup after that I create a temporay database on the production server lets's call it temporay tables. I than export the table from the restored backup into that temporary database. I also know that I can go into the database that I will restore to rename the original table than import the one from the backup. So my question is how do you restore an SQL server table to a new name when doing the import back to the original database basically the original table is named example and I want to restore to example2.

  • I could certainly be incorrect here but I don't believe that you can restore a given table as a different name directly. I believe the only way to do this is the way you've already doing it... restoring to a separate temporary database and then going from there.

    --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)

  • I don't normally post links to commercial software, but since this site is funded by redgate:

    http://www.red-gate.com/products/sql_backup/row_level_restore/why_row_level_restore.htm

    Paul

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

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