Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Updating SQL Server from VFP
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Client/server
Title:
Updating SQL Server from VFP
Miscellaneous
Thread ID:
01035892
Message ID:
01035892
Views:
67
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
Next
Reply
Map
View

Click here to load this message in the networking platform