Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need syntax help with =SQLEXEC syntax
Message
De
14/05/2001 13:51:13
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00506780
Message ID:
00506943
Vues:
17
>I changed the syntax so I am not using m.agloc. Rather I am using magloc. It still fails. The sqlprepare() statement returns the value of 1, so it is fine. but the Sqlexec() statement returns -1. I can not figure out why. I checked to be sure and magloc is not blank or null. It has a value.
>
>So, if anyone has any suggestions as to how I can add these VFP records to an existing SQL Server table , PLEASE suggest.
>
>Marie

You can use aerror() after the sqlexec return -1, then look at the seconed element of the array and you will know why it failed.

Also, if this is a one time thing, to move your data you can use DTS.

Another thing you can do is create a view of the SQL table, then open the view, append the records to the view, tableudate(1) the view.

BOb
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform