dbTalk Databases Forums  

Best practise: recovering from failed server update due to recorddeletion?

comp.databases.ms-access comp.databases.ms-access


Discuss Best practise: recovering from failed server update due to recorddeletion? in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
planetthoughtful
 
Posts: n/a

Default Best practise: recovering from failed server update due to recorddeletion? - 07-25-2010 , 09:10 PM






Hi All,

I have an application that I need to make as 'user proof' as possible.

Current roadblock is that one of the operations it performs does a
series of updates, inserts etc on tables on our SQL Server, and this
occasionally fails as a result of one or more records being deleted
from the recordset during normal user interaction via other tools.

I'm wondering how to best recover from this (currently, because I
understand the underlying code, I simply drop into debug, wait a few
seconds, press F5 to keep running)?

I assume it's best practise to use some sort of ON ERROR condition,
but I could see fringe scenarios where it might get into a very long
loop if it keeps hitting the same condition every time it loops back
to re-attempt the operations.

Any suggestions very welcome.

pt

Reply With Quote
  #2  
Old   
Roger
 
Posts: n/a

Default Re: Best practise: recovering from failed server update due to recorddeletion? - 07-26-2010 , 10:04 AM






On Jul 25, 8:10*pm, planetthoughtful <planetthought... (AT) gmail (DOT) com>
wrote:
Quote:
Hi All,

I have an application that I need to make as 'user proof' as possible.

Current roadblock is that one of the operations it performs does a
series of updates, inserts etc on tables on our SQL Server, and this
occasionally fails as a result of one or more records being deleted
from the recordset during normal user interaction via other tools.

I'm wondering how to best recover from this (currently, because I
understand the underlying code, I simply drop into debug, wait a few
seconds, press F5 to keep running)?

I assume it's best practise to use some sort of ON ERROR condition,
but I could see fringe scenarios where it might get into a very long
loop if it keeps hitting the same condition every time it loops back
to re-attempt the operations.

Any suggestions very welcome.

pt
what happens if you put all your insert/update/delete statements
within a 'transaction' ?

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.