Hi all of you,
I need to create a large bunch of plain files from different SQL tables (approx 60 tables in the first drop). Every SQL table has the same number of columns and names. And some tables are in different servers and databases.
So far so good. Problem is how can I achieve this by using SSIS? I mean,I don’t want to create dozens of data flows by using the usual couple of "ADO .Net Source" and "Flat File Destination" tasks.. I would like to automate everything from the scratch using parameters.
I checked (let me know if I am wrong) that SQL Command Property on ADO .Net Source / OLE Db Source does not allow me parameterize the name of the tables.
So I’ve thought store all the info in a SQL table:
- Server
- Database
- Staging Table
- Destination
And then retrieve all the data by using .NET.
Does anyone has some sample by using Script Component + VSTA?
Idea here is just use an unique Data flow per environment (development->UAT->and finally reuse the same package when go live.
Thanks for your thoughts an ideas!!