January 21, 2008 at 9:03 am
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
January 21, 2008 at 9:09 am
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;
January 21, 2008 at 9:33 am
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
January 21, 2008 at 9:54 am
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