Is there any component to execute T-SQL Script

One Star

Is there any component to execute T-SQL Script

Hi,

I have loaded the data into the MSSQL Server(using Job Design process) and at the end i want to execute T-SQL Script.
Is there any component in Talend Data Integration to execute T-SQL Script.
Thanks.
Regards
Syed Arshad

Re: Is there any component to execute T-SQL Script

tRow
but it depends what (and how) you are trying to achieve it.
tRow runs a SQL script for every row that passes through it.
if you want to run a script at end of a subjob. you will have to trigger its execution.
the round-block way is to have a tFixedFlowInput with a single row (anything will do) to send this ONE row through a tMSSQLRow.
you enter whatever your SQL script should be run in tMSSQLRow.
does it help?
One Star DmB
One Star

Re: Is there any component to execute T-SQL Script

It's is possible to execute a script with a component tSystem with a command like this:
"cmd /c sqlcmd -S <server_name> -i \"C:\\Users\\script.sql\""
For this command you should have sqlcmd on you computer.

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