D
deadfish
Hi,
I have a ASP application with MS Access. I need to use transaction as there
are several insert and delete statement.
oConn.beginTrans
commUpdate.CommandText = "delete from tableA ..."
set rs = commUpdate.Execute()
commUpdate.CommandText = "insert into tableA ....." set rs =
commUpdate.Execute()
if Err.Number <> 0 then
oConn.RollBackTrans
oConn.close
else
oConn.CommitTrans
oConn.close
set oConn =nothing
end if
Is it a correct way to use transaction? Would the server hang if there are
around 10 (or less) concurrent users. Would the whole database being locked
while a user is performing transactioin?
Thanks in advance!
I have a ASP application with MS Access. I need to use transaction as there
are several insert and delete statement.
oConn.beginTrans
commUpdate.CommandText = "delete from tableA ..."
set rs = commUpdate.Execute()
commUpdate.CommandText = "insert into tableA ....." set rs =
commUpdate.Execute()
if Err.Number <> 0 then
oConn.RollBackTrans
oConn.close
else
oConn.CommitTrans
oConn.close
set oConn =nothing
end if
Is it a correct way to use transaction? Would the server hang if there are
around 10 (or less) concurrent users. Would the whole database being locked
while a user is performing transactioin?
Thanks in advance!