Forum Moderators: phranque

Message Too Old, No Replies

Recordset Transaction

         

charonlee

1:22 pm on Apr 28, 2003 (gmt 0)

10+ Year Member



hi,

just curious to know, Can the beginTrans work at Recordset level. As I found, all are done at connection, i.e:

BeginTrans
Con.Execute (SQL)
CommitTrans

can it be like that

BeginTrans
rs.Open SQL, con
if rs.oef then
display records
end if
CommitTrans

macrost

4:06 pm on Apr 28, 2003 (gmt 0)

10+ Year Member



Hrmmm, I've never used BeginTrans before. Are you using a SQL server?
Mac

daisho

4:14 pm on Apr 28, 2003 (gmt 0)

10+ Year Member



It depends on the Backend that you are using.

In most cases you can have many different transactions for one connection but they cannot be nested. Ie a rollback cannot undo a previous commit.

There may be exceptions but I use Oracle and also MySQL with Innodb tables and I've never seen behaviour different from this.