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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Karuetl
Creator II
Creator II

Multiple SQL statement in one component

How to execute multiple sql statements in one component .. Please let me know 

 

I am using Snowflake DB

Labels (3)
1 Solution

Accepted Solutions
Karuetl
Creator II
Creator II
Author

I used tFileDelimited component and in the text file i had all the SQL statement 

View solution in original post

15 Replies
Anonymous
Not applicable

Hello,

Do you want to use multiple sql statement in sql query field of tSnowFlakeInput component?

Have you already checked 'Manual query' check box and entered within double quotation marks in the Full SQL query string field?

Best regards

Sabrina

 
Karuetl
Creator II
Creator II
Author

I am using Talend 6.2.1 version i dont see tSnowflake component So i am using tJDBC component

Anonymous
Not applicable

Hello,

Here exists a new feature jira issue about 'Integrate SnowFlake Components'

https://jira.talendforge.org/browse/TDI-38068

This issue has been fixed on V 6.4.1.

For tJDBCROW component, maybe you can add commit keyword in your query.

"Begin

UPDAT.....;

UPDAT.....
Delete from.....;
commit;

end;"

Best regards

Sabrina

Karuetl
Creator II
Creator II
Author

Got below error 

"

Multiple SQL statements in a single API call are not supported; use one API call per statement instead.

end;
"

manodwhb
Champion II
Champion II

creat a store procedure for those multiple sql's and use tJDBCSP comonent to execute that store procedure.

manodwhb
Champion II
Champion II

did my solution help you?

Karuetl
Creator II
Creator II
Author

I used tFileDelimited component and in the text file i had all the SQL statement 

Anonymous
Not applicable


@Karuetlwrote:

I used tFileDelimited component and in the text file i had all the SQL statement 


Hi,

 

Can you please give more detail as to how you did this?  I have exactly the same requirement.

 

Kind regards

Marius

Anonymous
Not applicable

Is this issue fixed? I have the same scenario. It's not working. could you pls mark this topic as not solved, we are giving the wrong message to the community group