Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Updating SQL Server from VFP
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Titre:
Updating SQL Server from VFP
Divers
Thread ID:
01035892
Message ID:
01035892
Vues:
66
Hello All, I need to update a SQL Server 7 table from my VFP 7 app, the table ( mastcust ) has a structure as follows


masterref char (10) not null,
amenddate [datetime] null
...
a few more fields of the same types as above

I can update the table using a remote view but would prefer to use SPT, this is what I've tried without success


Connection code here ( no problem )

mystr = "Insert into mastcust (masterref,amenddate) values('0000000001',?m.mydate)"

sqlprepare(handle,mystr) && Ok so far

m.mydate = date()

retval = sqlexecute(handle) && returns -1


any ideas ?
Regards,
Peter J. Kane



Pete
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform