On Thu, Apr 28, 2016 at 2:16 PM, Gabor Boros gaborbo...@yahoo.com
[firebird-support] <firebird-support@yahoogroups.com> wrote:

> ...
>
> Try to utilize WITH LOCK because I need many unique number generators in
> a table field. Like a generator/sequence but under transaction control.
>

Okay...  What's the requirement that keeps you from using generators?  Do
you intend to grab the number in a transaction that does other work?  What
is the concurrency requirement?  What you're thinking about doing will
serialize the generation of identifiers and all other actions of those
transactions.  I'm not totally convinced that using ReadCommitted/wait will
create an auditable series of numbers in the case where a transaction
fails. This article may give you a way to look at the problem.
http://www.ibobjects.com/TechInfo.html#ti_AuditableSeries

Good luck,

Ann
        • ... Gabor Boros gaborbo...@yahoo.com [firebird-support]
          • ... Dmitry Yemanov dim...@users.sourceforge.net [firebird-support]
            • ... 'Leyne, Sean' s...@broadviewsoftware.com [firebird-support]
            • ... Gabor Boros gaborbo...@yahoo.com [firebird-support]
              • ... Dmitry Yemanov dim...@users.sourceforge.net [firebird-support]
              • ... Dmitry Yemanov dim...@users.sourceforge.net [firebird-support]
          • ... Ann Harrison aharri...@ibphoenix.com [firebird-support]
            • ... Ann Harrison aharri...@ibphoenix.com [firebird-support]
          • ... Thomas Steinmaurer t...@iblogmanager.com [firebird-support]
            • ... Gabor Boros gaborbo...@yahoo.com [firebird-support]
              • ... Ann Harrison aharri...@ibphoenix.com [firebird-support]
              • ... Gabor Boros gaborbo...@yahoo.com [firebird-support]
              • ... Dimitry Sibiryakov s...@ibphoenix.com [firebird-support]
              • ... 'Thomas Steinmaurer' t...@iblogmanager.com [firebird-support]
              • ... Gabor Boros gaborbo...@yahoo.com [firebird-support]
              • ... kristinwens...@yahoo.com [firebird-support]
    • Re: [f... Gabor Boros gaborbo...@yahoo.com [firebird-support]
  • Re: [firebi... Gabor Boros gaborbo...@yahoo.com [firebird-support]

Reply via email to