If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > rollback & identity columns

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-26-04, 07:59
fsauca fsauca is offline
Registered User
 
Join Date: Oct 2004
Posts: 3
rollback & identity columns

Let's say two users (Us1 & Us2) insert a row into a table containing an identity column (value 1 assigned to Us1, value 2 assigned to Us2).

If the operation of Us1 fails and is rolled back, and operation of Us2 is committed, value of 1 in identity column is lost.

Is there any way of ensuring that there are no "holes" in an identity column?
Reply With Quote
  #2 (permalink)  
Old 10-26-04, 08:29
osy45 osy45 is offline
Registered User
 
Join Date: Nov 2002
Posts: 833
no,

do you need continous identities with your definied increment?
then you have to write your own package to handle that stuff,
but keep in mind:
if ever any business need deletes rows and you reuse them again
e.g. customerID & then reusing the number for another customer
how will be able to continue SOX compliancy??? if both had/have bookings ....

every customer I know lives with "holes" in idenity columns
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On