How can we increment the surrogate key value?
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 81
- Joined: Thu Nov 30, 2006 7:46 am
- Location: india
How can we increment the surrogate key value?
How can we increment the surrogate key value for every insert in to target database?
MALLI
-
- Charter Member
- Posts: 822
- Joined: Sat Sep 17, 2005 5:25 pm
- Location: USA
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Re: How can we increment the surrogate key value?
By adding one to the previous value, which you initialize from the target table.mallikharjuna wrote:How can we increment the surrogate key value for every insert in to target database?
Or by using a sequence in the database.
There are key management routines in the SDK, but no way to initialize these out of the box - but that is possible, search the forum to find out how.
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.