× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hi Dieter,

Years ago when we implemented identity columns I have played with that.
Trying for example to do an ALTER TABLE xyz ALTER COLUMN abc RESTART WITH
thelostvalue. Or saving thelostvalue to another table and let the next
insert uae that with an OVERRIDING SYSTEM VALUE. But I ran in too much
issues (like locking issues) that I cannot remember exactly anymore, and in
the end decided that it was not worth the effort for us.

Best regards,
-Arco

Op zaterdag 6 mei 2017 heeft D*B <dieter.bender@xxxxxxxxxxxx> het volgende
geschreven:

<Arco>
There is one caveat I don't like about them: when a transaction is rolled
back before completion, you'll lose the number that was used for the
identity in that transaction.
</Arco>

Auto increment implementation is not under transaction controll of your
program. To solve this, you would need your own implementation (as a
trigger or SQL function). Including the generated numbers in the inserting
transaction has the drawback that insert operations are serialized
limitting scalability.

D*B


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.