D
Dino M. Buljubasic
I have to insert data into several data tables in my application and would
like to be able to commit / rollback changes. The simplified process is
like this:
1. Begin Transaction
2. Inserti into Table1
3. Get the ID of inserted record
4. Insert into Table2
5. Insert into Table3
etc.
6. commit or rollback
My problem is that all data table operations are treated as a transacton.
That means, I will not be able to get the record ID after first insert
because it is not commited yet. I guess uncommited records are kept in
memory, and therefore my application does not work properly.
What would be correct way to do this?
Any help will be appreciated.
like to be able to commit / rollback changes. The simplified process is
like this:
1. Begin Transaction
2. Inserti into Table1
3. Get the ID of inserted record
4. Insert into Table2
5. Insert into Table3
etc.
6. commit or rollback
My problem is that all data table operations are treated as a transacton.
That means, I will not be able to get the record ID after first insert
because it is not commited yet. I guess uncommited records are kept in
memory, and therefore my application does not work properly.
What would be correct way to do this?
Any help will be appreciated.