Correct use of tMSSqlLastInsertId (fix always returns zero)

Seven Stars

Correct use of tMSSqlLastInsertId (fix always returns zero)

 To use tMSSqlLastInsertId correctly, you must disable "Use Batch Size" in the tMSSqlOutput component that does the insert.  Otherwise, the last_insert_id value will always be zero.

 

NOTE:  All kudos for this goes to Carl Bekwam Bekwam Blog: tMSSqlLastInsertId Returns 0.  I added here because I didn't see it and felt it was helpful for the community.

 

Highlighted
Moderator

Re: Correct use of tMSSqlLastInsertId (fix always returns zero)

Hello,

Thanks for sharing it on forum.

Best regards

Sabrina

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.

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

Have you checked out Talend’s 2019 Summer release yet?

Find out about Talend's 2019 Summer release

Blog

Talend Summer 2019 – What’s New?

Talend continues to revolutionize how businesses leverage speed and manage scale

Watch Now

6 Ways to Start Utilizing Machine Learning with Amazon We Services and Talend

Look at6 ways to start utilizing Machine Learning with Amazon We Services and Talend

Blog