Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

OLEDB Source + check for variable value and run flat file destination to create csv file

$
0
0

Hi,

I have an existing package that runs from batch file. batch file script loops thru different account numbers and executes package. Account Number is passed in to package variable. The package extracts data from file into database table and then it gets massaged and output csv file is generated for each account.

Output file to CSV happens in dataflow task (ole db source -> flat file destination)

I got new requirement to generate another CSV file with slight different data only if account number is 1111.

How to do using same oledbsource in data flow.

I need like this:

       OLEDB Source  -> flat file destination

          |

        If variable User::account is 1111 Then -> another flat file destination of csv file.

How to do this.

Thank You


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>