Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What is FoxPro's equivalent of Access's RunSQL command?
Message
De
21/11/1996 14:56:47
 
 
À
21/11/1996 13:45:00
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00013032
Message ID:
00013046
Vues:
35
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform