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

rename columns

$
0
0

Hi

As input I use an Excel file with ONE worksheet and columns C1old, C2old, C3old...

As output I use an Excel file with MORE worksheets W1, W2, W3...and columns W1_C1new, W1_C2new, W1_C3new...in worksheet W1, W2_C1new, W2_C2new, W2_C3new...in worksheet W2 and so on.

In MS-SQL I have a table with 2 columns doing such mapping (renaming):

C1old    W1_C1new

C2old    W1_C2new

C3old    W1_C3new

C4old    W2_C1new

C5old    W2_C2new

...

How to implement it in SSIS?

If it's too difficult I better write a macro (VBA) to simply rename columns and put them on the right worksheets according to the MS-SQL table.

Thanks a lot!


gec


Viewing all articles
Browse latest Browse all 24688

Trending Articles



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