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

Merge records from excel and SQL (derived columns like operation)

$
0
0

Hi,

I am looking for suggestion on how to resolve a requirement as below,

1) read data from excel source which has 2 columns as below,

TName |TRevision|

T01|00

T02|00

T3|00

2) Read data from a SQL table which will have rows as below

DocName|Docrevision|Att1|Att2

D01|R01|AA|BB

D02|R01|CC|DD

D03|R01|EEE|BBB

What I want to do this read the first row from excel ,  query the database to get a set of rows

(The number of rows will be different for each value  of "Tname"). This needs to be completed for all values in the excel and push the combine result to one common excel)

TName|TRevision|DocName|Docrevision|Att1|Att2

T01|00|D01|R01|AA|BB

T01|00|D02|R01|CC|DD

T01|00|D03|R01|EEE|BBB

T02|00|D04|R01|XXX|yyy

T02|00|D05|XXX|YYY

Its like conccatinating results from one row of excel with all the rows of the SQL Query.

Kindly recommend what "control" or "Data flow" items can perform this activity.

thanks in advance. 


Viewing all articles
Browse latest Browse all 24688

Trending Articles



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