Hi...
I have 2 executes to the database, one is a delete and the other is an insert. The delete is first and the insert directly after.
I would like to put in some rollback feature which will allow any changes made to the db to be rolled back if something goes wrong.
Can anyone help?
I have 2 executes to the database, one is a delete and the other is an insert. The delete is first and the insert directly after.
I would like to put in some rollback feature which will allow any changes made to the db to be rolled back if something goes wrong.
Code:
'delete all user interests from the table
ParamNameArray=Array("RegisteredUserID")
ParamValueArray=Array(RegisteredUserID)
set UpdateRS = ExecuteSP (Conn, "thetin_web_deleteRegisteredInterest ", ParamNameArray, ParamValueArray)
'add in all the interests from the request object
If interest <> "NULL" then
InterestArray = split (interest, ",")
For i = 0 to ubound(InterestArray)
'response.write(InterestArray(i))
'response.end
ParamNameInterestArray=Array("RegisteredUserID", "InterestID")
ParamValueInterestArray=Array(RegisteredUserID,InterestArray(i))
Set RegInterestRS = ExecuteSP(Conn, "thetin_web_insertRegisteredInterest ", ParamNameInterestArray, ParamValueInterestArray)
Next
End if
Can anyone help?