Transactions with VFPoleDB ?


Author
Message
Michel Levy
Michel Levy
StrataFrame User (437 reputation)StrataFrame User (437 reputation)StrataFrame User (437 reputation)StrataFrame User (437 reputation)StrataFrame User (437 reputation)StrataFrame User (437 reputation)StrataFrame User (437 reputation)StrataFrame User (437 reputation)StrataFrame User (437 reputation)
Group: StrataFrame Users
Posts: 193, Visits: 9K
Hi,
  1. Wich IsolationLevel should I choose when I begin a transaction? ReadCommitted seems to run fine, and also Unspecified...
    I know which one to choose in SQL according to my needs, I use transactions in VFP code for many years without thinking of the IsolationLevel, and now, I'm lost Unsure
  2. Having this code:
           TransactionBegin("DataVFP","Tnx1",Data.IsolationLevel.Unspecified)
           If  Me.BO_Northwind_Employee.Save(True,"Tnx1")=MicroFour.StrataFrame.Data.SaveUndoResult.Success 
                TransactionCommit("DataVFP","Tnx1")

    In the html trace - MicroFour.StrataFrame.Data.DataBasics.DataSources("DataVFP").SetDebugOn(...) - I read
    Transaction: False
    I expected True...

So I wonder how transactions are really supported by vfpoledb



Ivan George Borges
Ivan George Borges
Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)
Group: StrataFrame MVPs
Posts: 1.9K, Visits: 21K
Michel Levy
Michel Levy
StrataFrame User (437 reputation)StrataFrame User (437 reputation)StrataFrame User (437 reputation)StrataFrame User (437 reputation)StrataFrame User (437 reputation)StrataFrame User (437 reputation)StrataFrame User (437 reputation)StrataFrame User (437 reputation)StrataFrame User (437 reputation)
Group: StrataFrame Users
Posts: 193, Visits: 9K
Hi Ivan,

thanks for that links.

1st one does not give me more information : when Anders writes "... should work as well..", it's exactly what I need to be definitely sure, without any doubt.
from 2nd link, I jump to http://msdn.microsoft.com/en-us/library/ms917355.aspx where I've found some interresting informations.

but what about the html trace where one can read Transaction:False, even if I have a TransactionBegin...? is it a true information (so, it means that I have failed when establishing the transaction, but I had no error), or is that information not updated on a vfp transaction? Could you please ask our SF gurus?

And how do you understand the way VFP manage its transactions? which isolation level does it use? ReadCommitted?

Thanks a lot for your help

Ivan George Borges
Ivan George Borges
Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)
Group: StrataFrame MVPs
Posts: 1.9K, Visits: 21K
Hi Michel.

Sorry for not being able to give you any exact answer on this, I simply have no idea. BigGrin

I also tried on the Universal Thread, where there should be loads of VFP gurus, searched it all and couldn't find anything about Transactions on the VFPOleDB. I will see if I can get something more substantial to you, but I guess the VFPOleDB provider might not help a lot on this. I have suffered quite a bit with it to build my Import methods to get the data out of the VFP legacy tables and into SQL Server, and that was just a plain reading procedure.

Michel Levy
Michel Levy
StrataFrame User (437 reputation)StrataFrame User (437 reputation)StrataFrame User (437 reputation)StrataFrame User (437 reputation)StrataFrame User (437 reputation)StrataFrame User (437 reputation)StrataFrame User (437 reputation)StrataFrame User (437 reputation)StrataFrame User (437 reputation)
Group: StrataFrame Users
Posts: 193, Visits: 9K
Ivan,

I can't believe that you have no idea Doze

nothing on the UT, nothing on Foxite, nothing on MSDN forums... I hope that a VFP guru here would know (Charles, Edhy, Marcia, Toni, Greg, ??).

Michel Levy
Michel Levy
StrataFrame User (437 reputation)StrataFrame User (437 reputation)StrataFrame User (437 reputation)StrataFrame User (437 reputation)StrataFrame User (437 reputation)StrataFrame User (437 reputation)StrataFrame User (437 reputation)StrataFrame User (437 reputation)StrataFrame User (437 reputation)
Group: StrataFrame Users
Posts: 193, Visits: 9K
Bump.... No ideas, nobody??
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search