I'm trying to set up a data warehouse in SQL Server 2005.
There's various methods, here's mine.
I'd like to have a database for every month.
Within each database I will have the same tables.
MY QUESTION:
I'd like to create a seperate Execute SQL task that creates
1. the Databases and
2. the Tables within each database. (Same for all databases)
I did step 1 easily by injecting a CREATE DATABASE script into the Execute SQL task in SSIS. No problems there.
My databases are labeled YEAR_001_01, YEAR_001_02 ...YEAR_003_12
This gives me 36 months of activity to work with. I know it's bulky, but bare with me...
** Step 2. is the problem. I want the Execute SQL Task to first search all databases to see if they are LIKE 'YEAR_00%' and if so, place all the tables inside each database labeled as such.
I'm really not an expert at making this happen. Any help would be appreciated. I've aready spent 20 hours attempting this to no avail. I'm an expert with MS Access so as soon as I get my basic structure arranged I'll be in Access/SQL heaven again. please help!!!
I just want to create tables here, not loading them with data yet.
Thanks,
Doug
There's various methods, here's mine.
I'd like to have a database for every month.
Within each database I will have the same tables.
MY QUESTION:
I'd like to create a seperate Execute SQL task that creates
1. the Databases and
2. the Tables within each database. (Same for all databases)
I did step 1 easily by injecting a CREATE DATABASE script into the Execute SQL task in SSIS. No problems there.
My databases are labeled YEAR_001_01, YEAR_001_02 ...YEAR_003_12
This gives me 36 months of activity to work with. I know it's bulky, but bare with me...
** Step 2. is the problem. I want the Execute SQL Task to first search all databases to see if they are LIKE 'YEAR_00%' and if so, place all the tables inside each database labeled as such.
I'm really not an expert at making this happen. Any help would be appreciated. I've aready spent 20 hours attempting this to no avail. I'm an expert with MS Access so as soon as I get my basic structure arranged I'll be in Access/SQL heaven again. please help!!!
I just want to create tables here, not loading them with data yet.
Thanks,
Doug