I am trying to find a way to automate exporting data from SQL Server tables to .csv files.
Currently, I am using SSIS to export data but it's a manual process where I have to tell the package what .csv files to export to and can only do one customer at a time. I have a SQL table with over 1,800 customers and each customer has corresponding data in multiple tables. Is it possible to use SSIS, tell the package to traverse through the customer table, and export data based on the customer ID from two corresponding tables to two different .csv files?
Many thanks!
select * from documents where customerId = ?
) etc and export to a file. Use an Expression on the ConnectionString property for each output file to match the value being shredded. Some diligent bingling of these terms should provide plenty of examples. Just build it out one piece at a time and it shouldn't be bad. – billinkc