Link to home
Start Free TrialLog in
Avatar of pvsbandi
pvsbandiFlag for United States of America

asked on

SSIS 2012 save to file with dynamic name

Hi All,

   I'm new to SSIS.
    I have an urgent requirement to do the following:
a) I have a table TBL_FILENAME, which has a coulmn called "CName". This name changes every day.
b) I have another SQL query, which produces an output containing 10 fields.
c)  My requirement is to export the output of the SQL query mentioned in step b)
     into a pipe delimited file, where the name of the file should be "CName" mentioned in step a)
d) Also, the pipe delimited file produced in step c) should have the "CName" before the headers inside the file.

Can someone kindly help me with a sample package to achieve the same?
Thanks much in advance.
ASKER CERTIFIED SOLUTION
Avatar of Máté Farkas
Máté Farkas
Flag of Hungary image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of pvsbandi

ASKER

Thanks! I have sent you a message
Thank you! Your msg worked.