Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Updatable ADO Recordset
Message
De
15/11/2000 14:32:24
 
 
À
15/11/2000 13:03:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00442216
Message ID:
00442267
Vues:
8
>I am querying a SQL Server joining two tables using ADO to return a client side updatable recordset. I have used two different methods to retrieve the recordset, by using a Comand Object to execute a SP to get the rows and by using the recordset Open method passing the SQL string. The recordset Open method returns an updatable recordset as expected but the Command Object executing the SP returns a non-updatable records set. For testing I am executing the same basic code, just substituting the necessary code to vary the two methods. In both cases, the recordset is declared adClientSide, a cursortype of adOpenStatic and a locktype of adLockBatchOptimistic before the rows are retrieved. The SQL is identical in both cases, basically a cut/paste from the SP. However when using the Command Object/SP method, the recordset is coerced to adReadOnly on the client side. What am I missing that would cause this to happen?
>
>Thanks,
>Bill

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.
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform