|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
How I use TRANSACTIONS on an asp page
How I use TRANSACTIONS on an asp page to insert, update in a database(mysql), if a error occur i want to ROLLBACK otherwise i COMMIT the transaction.
For another database(oracle) i use the following syntax in the asp page : NameConn.BeginTrans on error resume next err.clear ................................... if err.number = 0 then NameConn.CommitTrans ........................................... else NameConn.RollBackTrans ............................................ end if Thank you |
|
#2
|
|||
|
|||
|
dude
could you try not to post the same message 2 times...
__________________
Regards, James Yang .NET Developer / Network Engineer MCSE, MCDBA, MCSA, CCNA http://www.yellowpin.com/ http://www.opentechsupport.com/ |
![]() |
| Viewing: Dev Articles Community Forums > Databases > General SQL Development > How I use TRANSACTIONS on an asp page |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|