Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with MTS
Message
From
15/10/1999 01:35:01
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Problem with MTS
Miscellaneous
Thread ID:
00276713
Message ID:
00276713
Views:
62
I will very thankful if anyone could help me in the following problem?
I have a COM object, which is to be connected to some database and do something with the data.
It works with MS SQL, OLE DB and ADO and I want it to work at MTS with ‘requires a transaction’ mode.

The code of the method is as follows:

oMTX=CreateObject("MTXAS.APPSERVER.1")
oContext=oMTX.GetObjectContext()

dbconnection=CREATEOBJECT("ADODB.Connection")
WITH dbconnection.
.ConnectionString=”Provider=SQLOLEDB.1……….. and so on”
.Open
ENDWITH
……………..

oContext.SetComplete()

Everything is all right while I am using it without MTS ‘requires a transaction’.
But working in this mode gives much retardation.
Besiades, I don’t see disconnection in Profiler of MS SQL when MTS deactivates this object.
Can anyone say what I do wrong?
Next
Reply
Map
View

Click here to load this message in the networking platform