Go Back   Velocity Reviews > Newsgroups > ASP Net
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

ASP Net - Transactions

 
Thread Tools Search this Thread
Old 08-09-2005, 10:03 AM   #1
Default Transactions


Hi All,
Can any one tell me how would you do nested transaction in
Ado.net.
My situation is

I have opened a transaction

i have five records in a grid-

1
2
3
4
5

When i pass 1 it should be in a transaction, If it succeeds or failed ,
it should start with the next record

THanks in Advance



thomson



thomson
  Reply With Quote
Old 08-09-2005, 10:44 AM   #2
Grant Merwitz
 
Posts: n/a
Default Re: Transactions
Begin the transaction

Wrap all you updates/processing into a try statement.
Place the rollback in the Catch Statement
If an exception occurs the transaction is rolled back, or if a criteria you
have specified is not met,you simply throw an exception
If there is no exception, you commit the transaction

So within the Try statement, you just place your updates one after the other

Does that answer your question?


"thomson" <> wrote in message
news: oups.com...
> Hi All,
> Can any one tell me how would you do nested transaction in
> Ado.net.
> My situation is
>
> I have opened a transaction
>
> i have five records in a grid-
>
> 1
> 2
> 3
> 4
> 5
>
> When i pass 1 it should be in a transaction, If it succeeds or failed ,
> it should start with the next record
>
> THanks in Advance
>
>
>
> thomson
>





Grant Merwitz
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Importance of SSL Certificates jenny Software 0 11-20-2006 07:11 AM
Get SSL Certificates for your Site falcon11 Software 0 11-18-2006 07:17 AM
email I just sent to Deep Discount DVD FAQmeister DVD Video 20 07-24-2004 06:34 AM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46