Below is my problem statement:
I have data in a table in DW(MS SQL 2008) which has a column say domainName which has values like www.yahoo.com. Now I need to use this table and for each row in this table I need to call a SP in Oracle(which is in an different server) which takes the domainName as an input and returns the IPAddress. My destination table just have 2 columns, domainName and IPAddress.
For me to achieve this, I am trying to use OLEDB Command Transformation. Below is how the pipeline looks like:
OLEDB Source Transformation --> OLEDB Command Transformation --> OLEDB Destination Transformation
The problem I am facing are 2:
a) I think I cannot pass the arguments to SP correctly. The SQL I am using in OLEDB command is as below:
SELECT
? domain_name,
schema.ora_packge.get_ip_address(?) ip_address
from dual
b) I cannot get output columns from OLEDb Command transformation.
NOTE:
a) I am using SSIS 2008.
b) I cannot change the SP as it's managed by a different team.
c) I tried using a For each Loop at control flow level. Even though that's working. But I don't think it's and efficient way of doing it.
d) I also came to know that an anonymous block in Oracle cannot return anything.
Please pardon me, if this has been answered already. I did search quite a lot.
Thanks
Deb