Subject | RE: [firebird-support] Connect/disconnect |
---|---|
Author | Planles |
Post date | 2004-09-04T13:00:34Z |
> > If I insert data from one, I can't see inserted data from other before ICommiting transactions did, what I want, but I have one additional question.
> close database connection from first one and the renew connection from
> second one.
>
> When you close a connection the transaction is closed. And when you
> reconnect, a new transaction is created.
> Hard commit both transactions and you should see those changes.
Is it normal, that transaction->commit closes all opened datasets/queries ?
Is there neccessary to start a new transaction each time we commit one ?
And to my example: without transaction I was doing following:
APP1 (application, where user enters data):
- dataset->open
- DataSet->Append
- define data
- Dataset->post
- dataset->close
APP2 (here can another user review data)
- prepare sql statement
- dataset open (on start of application)
I didn't see new inserted data in app2, after close/open dataset, so I did
following:
APP1 (application, where user enters data):
- dataset->open
- DataSet->Append
- define data
- Dataset->post
- dataset->close
- transaction->commit
- transaction->start
APP2 (here can another user review data)
- transaction->commit
- transaction->start
- prepare sql statement
- dataset open (on start of application)
Is this right approach or wrong ?
Any help would be apprechiated.
Regards,
Primoz