Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VB, ADO, Foxpro 2.x tables using Update method
Message
De
15/05/2000 17:59:50
Zev Chopp
Ccs Consulting Services
Brooklyn, Californie, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
VB, ADO, Foxpro 2.x tables using Update method
Divers
Thread ID:
00369802
Message ID:
00369802
Vues:
60
I am creating a Foxpro free table recordset within VB, modifying a column and then calling its Update method. The problem is if I create the recordset with the following statement:
"select * from table where col1 = value1 and col2= value2"
which returns one record, the Update method will fail with a message that the SQL statement is too long. Based on a hunch, I change the statement to
"select col3, col4, col5 from table where col1=value1 and col2 = value2"
the Update method works. I assume the problem using the first statement is that the Update method is building an Update SQL statement verifying that none of the other (40+) columns in this table have changed. Looking at ADO docs it appears that the "Update Criteria" dynamic property would allow me to force ADO to just verify col1 & col2 -- but the VFP ODBC driver does not appear to support this property.

Any ideas or do I have to build my own Update Statement?
Thanks in Advance.
Zev
Répondre
Fil
Voir

Click here to load this message in the networking platform