Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 19th, 2005, 09:19 AM
Colin Steadman
Guest
 
Posts: n/a
Default What should I do if one of my update fails?

I'm setting up a site that prompts a user for information
about people and stores the results in a Access database.
This database is then used to create accounts on the
network.

To store the user data I need to run three separate INSERT
queries into an Access 2000 database.

What I'd like to know is, should one of these updates
fail. What should I do? Especially if its the second or
third update! At the moment all I'm doing is watching to
see if there is an error in each update function. If
there is one, then it abandons the whole thing and
redirects to an error page.

Should I be trying to backout of any previous updates, or
trying the broken function... or something else? What is
the correct course of action in such circumstances?

TIA,

Colin


  #2  
Old July 19th, 2005, 09:20 AM
Atrax
Guest
 
Posts: n/a
Default Re: What should I do if one of my update fails?

use transactions - ADO supports them with ease. if one fails, the rest
will be rolled back, and they're also well documented.





________________________________________
Atrax. MVP, IIS
http://rtfm.atrax.co.uk/

newsflash : Atrax.Richedit 1.0 now released.
http://rtfm.atrax.co.uk/infinitemonk...trax.RichEdit/

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
  #3  
Old July 19th, 2005, 09:20 AM
Colin Steadman
Guest
 
Posts: n/a
Default Re: What should I do if one of my update fails?

Atrax <atrax@dontspamatrax.co.uk> wrote in message news:<e3SbHHunDHA.1948@TK2MSFTNGP12.phx.gbl>...[color=blue]
> use transactions - ADO supports them with ease. if one fails, the rest
> will be rolled back, and they're also well documented.[/color]

ADO can do that! Excellent, I wasn't aware of this feature. I'll
crack open my ASP book tomorrow and look it up, I'm sure it has a
section on ADO.

Thanks very much!

Colin
 

Bookmarks

Thread Tools

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

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles