Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error 1812 - SQL: Statement too long
Message
De
20/11/2004 19:26:47
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
20/11/2004 19:20:33
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Versions des environnements
Visual FoxPro:
VFP 8
OS:
Windows XP
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
00963256
Message ID:
00963258
Vues:
12
>Hi,
>
>I'm getting an error when I try to save (doing a TABLEUPDATE on the cursor) foxpro data using ODBC. The error is 1812 - SQL Statement too long.
>
>I'm trying to save with a cursor adapter. It has these 2 important settings:
> .DataSourceType = "Native"
> .Datasource = (oApp.nConnectionHandle) && where I get this handle thru ODBC to connect to the foxpro database.
>
>If I'm correct I think I've heard that the ODBC has a bug that doesn't allow more than 2000 characters and it seems that this is my problem since when I change only a few fields it works fine but when I change a lot I get the error. But when adding new records it works fine, don't know why, I guess the limit should apply when I'm adding records too.
>
>What methods do you guys use to work around this problem?
>
>Maybe it could be another problem?
>
>Thanks!
Roy,
Check sys(3055). Also if it's not a must for you to check with modified fields change wheretype to KeyFieldsOnly (would be a simple fix).
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform