Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Inserting records to SQL Server
Message
De
31/10/2001 16:19:51
 
 
À
31/10/2001 16:10:18
Sergio Ortiz
Tek Services Group, Llc
Hollywood, Floride, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00574760
Message ID:
00575879
Vues:
28
>Crescencio, I am not using SQLPrepare().
>
>Sergio

Try doing a concatenation of the values like so:
.. VALUES ( " + TransForm(BatchSkey) + ",";
  + "'" + CoCode + "',";
  + Transform(UsrBatchId) + "," &&.. etc.
Note that for numeric values you have to Transform() to character and for string and date values you have to enclose it within single quotes. The final result should look like:
.. VALUES(1, '001', 3, '2001-10-31')
It might help debugging this if you first construct the statement in a variable and then give it to SqlExec() like so: SqlExec(nHan, lcStatement).
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform