Automation of backup of table with index

  • Hi All

    I need to take back up of few tables in my database (Sql 2005) and restore them to another database. My Intention is both the database must be in sync

    There are two ways i) restore the main tables ii) restore the database.

    If i do the first option using select * into tablename from tbl ,am not getting the indexes restored.

    I i do the second option can any one explain how to automate the backup of one database and restore it to another database

    Thanks.

  • Take a look at the following topics on BOL or search here at SSC in the archives:

    1. Log Shipping

    2. Replication

    3. Database Mirroring (SQL Server Enterprise, 2005+)

    I am sure others will chime in with direct links to articles written on the subjects.

    MJM

  • I scheduled a nightly restore to a test system a while back:

    1) Backup to a drive (scheduled)

    2) Batch file to copy .BAK to destination server (Step 2 of backup)

    3) Destination server has job to run restore command

    4) Restablish sql logon permission to restored database.

    But Mark gave good suggestions for getting data to the other server. Some ideas are better than others depending on what you need.

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

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