Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQLEXEC command
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00515140
Message ID:
00515764
Views:
15
This message has been marked as the solution to the initial question of the thread.
Hi!

Add the '?' before each memory variable in the query:

SQL_STR = "UPDATE ClientType SET clEntity = ?m.entity,"+;
"clFirst1 = ?m.clFirst1,clMI1 = ?m.clMI1,clLast1 = ?m.clLast1,"+;
"clFirst2 = ?m.clFirst2,clMI2 = ?m.clMI2,clLast2 = ?m.clLast2,"+;
"clZip = ?m.zip where clClientID = ?M.CLIENT_ID"
Note that memory variables referenced should exist and contain a valid values before you run the SQLEXEC command.

>Hi Vlad:
> these are the codes that I am getting the connectivity error on:
>
>SQL_STR = "UPDATE ClientType SET clEntity = m.entity,"+;
> "clFirst1 = m.clFirst1,clMI1 = m.clMI1,clLast1 = m.clLast1,"+;
> "clFirst2 = m.clFirst2,clMI2 = m.clMI2,clLast2 = m.clLast2,"+;
> "clZip = m.zip where clClientID = ?M.CLIENT_ID"
>
>OUTPUT=SQLEXEC(gnquoteConn,SQL_STR)
>thanks
>sherry
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform