Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What is FoxPro's equivalent of Access's RunSQL command?
Message
From
21/11/1996 14:56:47
 
 
To
21/11/1996 13:45:00
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00013032
Message ID:
00013046
Views:
31
>Hi,
>
>I'm trying to execute a SQL statement that I have generated dynamically. In Access, to execute that SQL statement, I can just use
> RunSQL lsSQLString
>
>and it would run the string that I've built.
>
>How do I do that in FoxPro? Is there an equivalent of RunSQL? I can't use ExecSQL because I don't have a back-end. How do I execute SQL strings locally?
>
>Thanks. Any help is greatly appreciated.
>
>Anthony

If you mean Pass-Through statement for SQL Server, you should use SqlExec function.
If you just want to run some command (SELECT,DELETE,INSERT, etc) in Fox itself and you generated some string already, you can use Macro &:
cString="Select .... From... Where..."
&cString
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform