SSIS: How to transfer 170 tables of 3 gig from 1 database to another

  • I got my 170 inputtables in 1 database, this is daily updated.

    They need to be transfered to tables in another database (on t he same server) containing a prefix imp_

    Do I need to creat 170 dataflow tasks or can I restore the inputdatabase and do a rename afterwards.

    Any suggestions

    Greetings,

    Ben

  • if u restore, can then execute following script in query window.

    change output to text, execute it, then copy paste back in and execute

    SELECT 'Exec sp_rename ''' + name + ''', ''imp_' + name + ''';' + char(10) + 'GO'

    FROM sys.tables

    WHERE is_ms_shipped = 0;

  • Hello Russel,

    Thanks..

    Im not sure how to restore DB_X (170 tables) into an existing DB_Y.

    The restored DB_X tables need to be dropped and recreated every day

    Ben

  • I think I can use the sql server objects task and then your renaming option.

    thx

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

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