Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Save $650 on Qlik Connect, Dec 1 - 7, our lowest price of the year. Register with code CYBERWEEK: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

tMSSqlOutput how to insert new records and update existing ones.

Action on data : insert  - adds all the records again
Action on data : update - updates only existing ones but do not add new records
Action on data : insert/update - adds all the records again same as insert
For example table is
123 abc
124 dbc 
after insert
123 abc
124 dbc 
123 abc
124 dbc 
I have primary keys at sql tables and Identity specification > Is identity > YES
tMSSqlOutput >Advanced settings > use field options > primary key field:  update key , deletion key checked, updatable & insertable unchecked
Best Regards
Cihan
Labels (2)
2 Replies
Anonymous
Not applicable
Author

Hi,
What's the primary key in schema setting? Have you tried to use Action on data: update/insert? What does your expected result look like?
Best regards
Sabrina
Anonymous
Not applicable
Author

Hello,
Thank you for your reply.
I tried action on data update/insert or insert/update , it adds all the data to sql table again.
You can see the sql table , talend job and settings.
Is there a way to write only the new data to database & if the data is same, keep the existing rows?

0683p000009MBYf.jpg 0683p000009MBYk.jpg 0683p000009MBVS.jpg 0683p000009MBYp.jpg
Best Regards
Cihan