Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Updatable ADO Recordset
Message
From
16/11/2000 11:16:38
 
 
To
16/11/2000 07:37:33
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00442216
Message ID:
00442679
Views:
7
>>I've lent out my ADO book, but that behavior makes sense because a command object is simply executing a command, with no back link to the data source.
>
>I don't quite follow you here. Both methods return an ADO clientside recordset that has a declared locktype of adLockBatchOptimistic. Are you saying that without a back link to the data source, the locktype has to be coerced to adReadOnly? Can you explain why that would be?
>
>The reason I was using a Command object is to get the better performance available thru a SP. Seems a little funny for a limitation like this to be imposed.

I don't know enough of the internal workings of the objects to say this with force...but I believe a recordset object will have a "reference" to it's source and would thus be able to perform an update. The command object simply performs the operation and is done. No reference back to the data source. Compound this with the fact that you are running against an SP - which is also a one-way trip - and your client-side cursor will end up being forced to read-only.

A similar thing happens in VFP when you do a SQLEXEC to a cursor. That cursor is also read-only.

Anyone else? If this is wrong, feel free to jump in...meanwhile I'm going to do some testing to make sure.
Dan LeClair
www.cyberwombat.com
SET RANT ON - The Wombat Blog

Life isn’t a morality contest and purity makes a poor shield. - J. Peter Mulhern
Disclaimer: The comments made here are only my OPINIONS on various aspects of VFP, SQL Server, VS.NET, systems development, or life in general, and my OPINIONS should not be construed to be the authoritative word on any subject. No warranties or degrees of veracity are expressed or implied. Void where prohibited. Side effects may included dizziness, spontaneous combustion, or unexplainable cravings for dark beer. Wash with like colors only, serve immediately for best flavor.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform