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;"
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!

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 2

Part 2 of a series on Context Variables

Blog

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog