Hi All,
We have extracted data from SAP-BW and loaded data in to DB2 database server. We using update existing or insert new rows option.
But problem is records or not updated, but records inserted.
Can you please suggest me on this....
Thanks & regards
venu
Update existing or insert new rows
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 49
- Joined: Sat Mar 26, 2005 12:19 am
-
- Participant
- Posts: 3337
- Joined: Mon Jan 17, 2005 4:49 am
- Location: United Kingdom
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Of course, if every record was new - that is, not already in the target table - you would also (correctly) observe no records being updated and all records inserted.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
When you get right down to it, it's not about 'new' versus 'old' but - based on the fields you marked as keys - where any rows in the target database actually updated? When zero rows are updated that triggers the call to the insert... which can still fail because the 'real' keys already exist on another record or in another unique index.
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers