Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
TableUpdate and SQL string is too long
Message
De
29/11/2004 16:58:52
 
 
À
29/11/2004 07:48:10
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00959751
Message ID:
00965541
Vues:
9
Thanks a lot Hilmar.

What I don't understand is that I have surrogate primary keys for all my tables, and I indicate them to be the one who drive the updates in views.
It seems as if the SQL WHERE clause depends on how many fields you have to update, but the SYS(3055) function only talks about not having a primary key.

>I think I finally got a solution from the friends in the dfpug.
>
>Without having to change anything in the view, or doing some complicated checks, you can change the value of sys(3055)
>
>HTH,
>
>Hilmar.
>
>>Hi all,
>>
>>I have a view in a form that updates a table with 100 fields. The SQL statement is short, as all the fields belong to one table but 2 of them.
>>
>>When I issue tableUpdate(.t., .f., 'myView'), I get the error "SQL string is too long", and return .F.
>>If I force all rows to be updated with tableUpdate(.t., .t., 'myView'), then I don't get the error.
>>
>>I don't even know how to debug it to know what's happening inside, and why the error goes away when I force the update.
>>
>>Any ideas?
>>
>>TIA,
>>Javier.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform