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

Mapping column dynamically from SQL to Excel through SSIS package

$
0
0

I am expecting like below,

SQL Output
ProductID   ItemID     Date        Qty
101 2147 1/1/2018 10
102 2148 2/2/2018 12
103 2149 3/3/2018 15
103 2149 4/4/2018 15

I will convert this output to like below

ProductID ItemID Jan    Feb   Mar    Apr   
101   2147 10 NULL NULL NULL
102   2148 NULL 12 NULL NULL
103 2149 NULL NULL 15 15

I will use above results in OLE DB Source,initially I will prepare required columns in Excel then i can map those columns then i will execute package,

Problem is each and every month automatically one column will generate in SQL output,how can i map that column dynamically to excel.Now I hope you will understand my problem and I hope you will help to me to resolve this issue.

Regards,

Niranjan B


Viewing all articles
Browse latest Browse all 24688

Trending Articles



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