Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Syntax for inserting rows into SQL Server?
Message
From
18/11/2003 07:10:28
 
 
To
18/11/2003 06:52:06
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00850927
Message ID:
00850933
Views:
20
Hi Harry,

-------
SQLEXEC(gnhandle,"insert into vizkeys (realkey,kcurrent,date_used,kprevious,knext,date_up,crypt_key,mess_hash,ownerkey) values (m.realkey,m.kcurrent,m.date_used,'','',m.date_up,'','',m.ownerkey)",'real')

If you put a VFP var reference on a string, it is only a literal for this reference;
you need to use SPT parameters ?:
SQLEXEC(gnhandle,"insert into vizkeys (realkey,kcurrent,date_used,kprevious,knext,date_up,crypt_key,mess_hash,ownerkey)
 values 
(?m.realkey,?m.kcurrent,?m.date_used,'','',?m.date_up,'','',?m.ownerkey)",'real')
Fabio
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform