fatihbarut
fatihbarut

Reputation: 19

IBtransaction and Firebird for a multi-user program

I have a multiuser delphi program which has Firebird database behind it.

And I want 2 user can insert 2 records same time but with given automated number for a field.

On the other hand I am not sure Firebird is eligible for this without one use commit and close the table. And the other one refreshing it...

I heard bad things about commitretaining and I don't now what to do now. Like:

Upvotes: 0

Views: 808

Answers (1)

markus_ja
markus_ja

Reputation: 2951

Use GENERATORS. With GENERATORS you get always unique numbers. It doesn't matter how many transactions are active, they live outside the transaction control.

See Firebird Generator Guide

Upvotes: 2

Related Questions