Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

sql temp tables in tmssqlinput

I am running a query on a mssql db. The query runs perfectly fine in microsoft sql server management studio. However, the query will not run in talend. I cannot share the code but below is the general flow of the code. 

BEGIN

DECLARE A FEW VARIABLES

 

SELECT INTO TEMP TABLE1

SELECT INTO TEMP TABLE2

 

run queries

 

drop temp tables 

 

Could someone please demonstrate the proper way to do this sort of query in talend?

Labels (1)
  • v6.x

5 Replies
vapukov
Master II
Master II


@Robert_gill wrote:

I am running a query on a mssql db. The query runs perfectly fine in microsoft sql server management studio. However, the query will not run in talend. I cannot share the code but below is the general flow of the code. 

BEGIN

DECLARE A FEW VARIABLES

 

SELECT INTO TEMP TABLE1

SELECT INTO TEMP TABLE2

 

run queries

 

drop temp tables 

 

Could someone please demonstrate the proper way to do this sort of query in talend?


"BEGIN
          DECLARE A FEW VARIABLES;
 
          SELECT INTO TEMP TABLE1;
          SELECT INTO TEMP TABLE2;
 
          run queries;
 
          drop temp tables ;

END"

 

 

Anonymous
Not applicable
Author

That is how I had my code initially. If I use ";" talend throws syntax errors and if I don't use ";" the query begins to run then stops without displaying any sort of message. 

vapukov
Master II
Master II

look,

I can try to guess - what are do wrong 0683p000009MA9p.png ... but do I need this?

 

what I know, my code - is work 0683p000009MACn.png

I have my own code - it work

I create code similar to describe in Your pseudo code - it work

 

why all must guess - what also You are forget include 🙂

 

Code:
0683p000009Lsdi.png

Result:

0683p000009Lsil.png

Anonymous
Not applicable
Author

It is weird, the query results do not appear when i test the query.
However, talend can guess the schema and pull the data
vapukov
Master II
Master II

tSQLRow - do not proper component for return result (even in combination with)
Use tMSSQLInput instead

 

 

0683p000009Lsiq.png0683p000009Lsbv.png