Posted: Mon Sep 10, 2007 9:34 pm Post subject: |
|
|
|
Back to top |
|
|
acevedo Beginner
Joined: 03 Dec 2002 Posts: 127 Topics: 0 Location: Europe
|
Posted: Tue Sep 11, 2007 4:27 am Post subject: |
|
|
CraigG wrote: |
Keep track of any changes you have made and undo them yourself or forget this silly idea and use what the system offers (commit and rollback). |
the best advice you'll get. |
|
Back to top |
|
|
jsharon1248 Intermediate
Joined: 08 Aug 2007 Posts: 291 Topics: 2 Location: Chicago
|
Posted: Tue Sep 11, 2007 9:30 am Post subject: |
|
|
prog_mario
I have 3 words for you: Logical Unit of Work. (ok, technically that's 4 words, but there are only 3 that matter) Define that, and the rest takes care of itself. |
|
Back to top |
|
|
prog_mario Beginner
Joined: 08 Sep 2007 Posts: 86 Topics: 27
|
Posted: Tue Sep 11, 2007 12:24 pm Post subject: |
|
|
Hi. I'm not an advanced programmer on DB2. Maybe my question's not an interest one but in an interview for a job the interviewer asked me that. So I was wondering how could it be...
Anyway, thanks a lot everybody. _________________ The more I learn, the more I want to learn. |
|
Back to top |
|
|
jsharon1248 Intermediate
Joined: 08 Aug 2007 Posts: 291 Topics: 2 Location: Chicago
|
Posted: Tue Sep 11, 2007 1:24 pm Post subject: |
|
|
Your interviewer was probably looking for you to answer with SAVEPOINTs. I haven't had an opportunity to use this, but it looks like you could put together a process to do what your original post mentioned. I guess the application could tolerate certain failures as long as some updates were rolled back, and still be considered a complete LUW. |
|
Back to top |
|
|
prog_mario Beginner
Joined: 08 Sep 2007 Posts: 86 Topics: 27
|
Posted: Wed Sep 12, 2007 10:36 am Post subject: |
|
|
Thank you very much jsharon1248.
I found some notes about SAVEPOINT in a tutorial. I _________________ The more I learn, the more I want to learn. |
|
Back to top |
|
|
jsharon1248 Intermediate
Joined: 08 Aug 2007 Posts: 291 Topics: 2 Location: Chicago
|
Posted: Wed Sep 12, 2007 11:26 am Post subject: |
|
|
You're still using a ROLLBACK to undo the changes, but I'm betting that this was what your interviewer was looking for. |
|
Back to top |
|
|
|
|