Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I would use a field that exist in tmap to use it with query in tMsSqlInput like this
"select * from Table
where name="+row1.name
But when i run the job I get this error
Can you help me please ?
Thanks in advance.
It depends.
If most of the rows from main flow are linked with just few rows from the lookup, it should be efficient to use "Reload at each time (cache)" option to get only the required rows from database. Of course, columns used as criteria are supposed to be indexed on database side.
Else, if each row from main flow is linked with a different rows from the lookup you'll have to load all the rows from the lookup table, so "Load once" is the option in such a case.
Thank you for your replay but it doesn't solve the problem.
Now you have a new problem, it's a compilation error.
Click on "Code" tab and go to line 4103 to get the exact compilation error.
Also share tMap_3
With error S connot be resolved to a variable !
It seems the error is not there. Move the mouse pointer on the little red rectangle in the right marging, a popup should give you the message
OK, you cannot use S.name in the SQL query as it not a known field in this component.
Do you use "Reload each time" as the Lookup Model in tMap_3?
This is the way to do what you expect (I think so).
Refer to this document for details.
In fact, my need is to compare the contents of each incoming file by the lines in the database through the name to lighten the memory...