Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to make CA Recordset read-write?
Message
From
20/07/2010 18:12:07
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01473204
Message ID:
01473205
Views:
50
>Hi,
>
>When I am trying to update SQL Server table using CursorAdapter and 'ADO' data access mechanism, I get error:
>
>Cannot update ADODB.Recordset because it is read-only.
>
>How do you solve this issue?
>
>TIA

Check the properties. From VFP Help:

Make sure the ADO Recordset is configured to support updates. The ADO Recordset must typically have its CursorType property be adOpenKeyset, adOpenDynamic, or adOpenStatic, and its CursorLocation property must typically be adUseClient.

http://msdn.microsoft.com/en-us/library/aa976769%28VS.71%29.aspx

There is an example here:
http://msdn.microsoft.com/en-us/library/ms917355.aspx
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform