|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I have to alter one value on a table for each item of a sale, and if the user closes the client application with reset, alt+f4 or any othe way, how do I make a rollback.
|
|
#2
|
|||
|
|||
|
Quote:
If you're inside a transaction, and did not set any auto-commit, it will be rolled back automatically when you close the connection to the database (i.e. close the program). M.
__________________
-- Manuel Hirsch - Linux, FreeBSD, programming, administration articles, tutorials and more. |
|
#3
|
|||
|
|||
|
Quote:
ok this is true for a client/server, but what will hapend in a 3-tier if just the client and not the application server is closed? |
|
#4
|
|||
|
|||
|
Quote:
You could trap the window close events, but this won't help always, eg. if an uncaught exception closes the client program. Maybe use "keepalives", send a ping message every n seconds or something like that. M. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Delphi Programming > transaction in multitier application |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|