Execute SQL task before starting a Job

Six Stars

Execute SQL task before starting a Job

Hello Everyone,

 

I would like to know what is the component used to execute an sql task before running a Job. I would like to truncate my fact tables before loading them. I've used 'execute sql task' component in SSIS for the above problem.

 

I've tried looking for tMSQLrow component in the pallete but was not able to find it. Instead I found tHiveRow(not sure if it's the right component) which requires external jar's to be installed.

 

Please help me with this.

 

Thanks and regards,

Praneeth Reddy Varimalla


Accepted Solutions
Nine Stars JR
Nine Stars

Re: Execute SQL task before starting a Job

Hi

Have you tried the component tDBRow and then select the DB type "MySQL" or "MSSQL" (not sure which one you use) in the component parameters? Since Talend 7.X the component will automatically change to a tMySQLRow or tMSSQLRow component after you do this.


All Replies
Nine Stars JR
Nine Stars

Re: Execute SQL task before starting a Job

Hi

Have you tried the component tDBRow and then select the DB type "MySQL" or "MSSQL" (not sure which one you use) in the component parameters? Since Talend 7.X the component will automatically change to a tMySQLRow or tMSSQLRow component after you do this.

Six Stars

Re: Execute SQL task before starting a Job

Hello JR,

 

Thanks a lot! That works.

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 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

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog