Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SPT INSERT syntax error?
Message
De
20/07/1998 19:10:47
Brian Lee
World Access Network, Inc.
Vancouver, Washington, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Titre:
SPT INSERT syntax error?
Divers
Thread ID:
00119512
Message ID:
00119512
Vues:
51
Since TABLEUPDATE() seems rather unreliable for INSERTing new table rows back to SQL Server 6.5 through Remote Views, I'm now trying SQL Pass-Through functions to send an INSERT back to the server. No such luck, I keep getting syntax errors and connectivity errors. I've tried the syntax a hundred different ways, it seems - still no success. If anyone can shed light here, it would be greatly appreciated.

I APPEND BLANK to cursor, then REPLACE data in all fields. Now I send
= SQLExec(nConnect, "INSERT INTO sqltable (col1,col2,col3...) VALUE (curs.col1, curs.col2, etc..)")

I've initialized all required elements using CURSORSETPROP().
I've tried the SQLExec a variety of ways, using various delimiters, specifying each value, not specifying, etc. etc. What am I doing wrong? SELECT and UPDATE's work fine, only INSERT's do not. Thanks.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform