1: Is this a 1 time job or a recurring job?
2: does 2nd database alreadfy have data in it? If it has data in it are you wanting to remove current data and replace with data from 1st database or add data from 1st database to existing table in 2nd database?
In either situation, your 1st place to start would be to set up a query using the information_schema schema. this query will give you all the table names in the database:
select * from INFORMATION_SCHEMA.TABLES
where table_type = 'BASE TABLE'
You can put the results of that query into an SSIS variable (object ttype variable) and the set up a for each loop to iterate over each row returned - this will efectively set up a loop over each table of your database
you can assign the table name to a variable as part of the loop and use that to construct a query to take data from each table and insert into the table on database 2 as required
Rgds, Geoff
We could learn a lot from crayons. Some are sharp, some are pretty and some are dull. Some have weird names and all are different colours but they all live in the same box.
Please read FAQ222-2244 before you ask a question