Israel,
You probably didn't find the functions because you were looking in the wrong
place. the functions "BeginTrans", "CommitTrans" and "Rollback" are members of
CDatabase. This makes sense because transactions work across recordsets, i.e.
if you commit a transaction, work performed in all recordsets will be
committed.
-Ronald-
Ronald
Thanks for your help. I really was looking on the wrong place. I think I was
induced to it because I found in the recordset the CanTransact function. May
be this function should also be only in CDataBase, or is there something
special
in this case that makes this function to be part of RecordSet?
Thanks
Israel
Israel,
When I double checked the info before posting it to you, I also came across
CanTransact in CRecordset and I wondered about what made that one special as
well.
So… I looked at the source and found that CRecordset::CanTransact is
essentially implemented as
return m_pDatabasem_bTransactions
So I really wonder why this function was included.
-Ronald-