Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SSIS: Insert/Update

I am wondering if there is a specific Insert or Update option in SSIS.

Will I have to do some coding if I want to let the program check if it is an update or insert? Or can there be an option enabled so it will check itself if the PK exists then update and otherwise insert?

Kind regards

like image 591
Tjekkles Avatar asked Apr 14 '26 23:04

Tjekkles


2 Answers

Just one solution SSIS update insert

better update syntax

If there are more records it will be slow.

like image 128
Justin Avatar answered Apr 18 '26 07:04

Justin


I don't know if I uderstand your problem properly. But I think SQL Server MERGE would be very useful here. And it's super-efficent.

More info here:

http://technet.microsoft.com/en-us/library/bb510625.aspx

like image 27
devarc Avatar answered Apr 18 '26 05:04

devarc



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!