Execute file.sql script on firebird data base

One Star

Execute file.sql script on firebird data base

Hello.
I have sql file with several updates to do on my firebird database.
Update xpto set a=a;
Update xpto set b=b;
etc...
How can I execute this, since tfirebirdrow, does not support this feature?
Employee

Re: Execute file.sql script on firebird data base

You can do it like this :
"begin
execute immediate 'create statement 1';
execute immediate 'create statement 2';
commit;
end;"
Highlighted
Community Manager

Re: Execute file.sql script on firebird data base

Hi
You can read line one by one, and then iterate each sql statement on tFirebirdRow. For example:
tFirebirdConnection
|
onsubjobok
|
tFileInputLine--main(row1)--tFlowToIterate--iterate--tfirebirdrow
|
tFirebirdClose
on tFirebireRow, check the option 'use an existing db connection, set the query as:
row1.line
shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
Seventeen Stars

Re: Execute file.sql script on firebird data base

Or you can use the component tSQLScriptParser from Talend Exchange which is designed to do exactly this work!

Calling Talend Open Studio Users

The first 100 community members completing the Open Studio survey win a $10 gift voucher.

Start the survey

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

Agile Data lakes & Analytics

Accelerate your data lake projects with an agile approach

Watch