2

SO heres what I am trying to do. I have a table which has 2 columns - QC_Check and Query. For each QC_Check I have a query. There are several records like this.

Is there a way using SQL transformation that, I can fetch the SQL query stored in the Query column to Informatica, run the queries in Teradata and get the results stored somewhere.

2
  • I don't know how to do this in Informatica, but if it's a TD table, why don't you create a Stored Procedure to run those checks using Dynamic SQL?
    – dnoeth
    Jun 26, 2014 at 14:05
  • Stored Procedure can be done. However, its not an option right now as per the requirement.
    – Raj V
    Jun 27, 2014 at 6:01

1 Answer 1

3

Although, I have not tried it myself, this should be possible using SQL transformation in Query mode with Dynamic SQL Queries. Use the table with Query column as a source. Create a SQL transformation with Query mode. Connect the Query column to the SQL transformation. enter image description here

Write ~Query_Port~ in the SQL editor in the SQL transformation:

enter image description here

If you want to capture the results from your query, you have to configure output ports for columns you retrieve from the database.

1
  • Hi Samik. I tried this, however I am not able to capture my output and the query string is getting saved in the target. Can you elaborate on what you meant by "f you want to capture the results from your query, you have to configure output ports for columns you retrieve from the database."
    – Raj V
    Jul 1, 2014 at 11:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.