Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
C5 On Com+
Message
From
08/07/2001 23:58:00
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Miscellaneous
Thread ID:
00527937
Message ID:
00527990
Views:
26
I agree with Nancy. Remove anything that is UI related.

Are you using SP5?

Also, why are you requiring a transaction for a query? It's overhead that isn't needed.


>Hi all
>
>I have a big problem with one of my component and i just found out the cause of the problem, maybe somebody can explain what i am doing wrong.
>
>Here is the sequence to reproduce the problem:
>
>On a VFP Com server on Com+ set with "require transaction" Built with VFP6 SP5 Running on W2K Server SP2
>
>
>lnConnect SqlConnect( MySqlConnect String to Sql Server 2000 )
>lnResult = SqlPrepare( lnConnect, "Select * from someTable Where SomeField = ?" )
>*-- Value of lnResult = 1
>lnExecRes = SqlExec( lnConnect)
>*-- lnExecRes value is 1 even if the statement was not successfull !!
>=SqlDisconnect( lnConnect )
>*-- I get a C5 Right here every time
>
>
>Anybody could tell me what i am doing wrong, my statement contains a "?" and VFP would normally ask the user for a parameter but since we are in a DLL and no interface is allowed, i trap the error with a IF Used("TableName") and then disconnect. Maybe VFP is confused by the ? inside a dll !!
>
>Thanks
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Reply
Map
View

Click here to load this message in the networking platform