Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BEginner question on SQL script
Message
De
14/02/2000 14:34:47
 
 
À
14/02/2000 12:54:22
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00331801
Message ID:
00331859
Vues:
16
>Hi,
>
>This is a very basic question, but I can't find the answer.
>
>How can a run a SQL script (myscript.sql) eiwhout using the SQL query analyser tool, ideally form a foxpro program.
>
>I tried this:
>sqlexec(nConn, "v:\dirname\myscript.sql")
>
>It did not return any error but it did not execute either.
>

In VFP6, you might try:

LOCAL cSQLStatement
cSQLStatement=FILETOSTR("v:\dirname\myscript.sql")
SQLEXEC(nConn,cSQLStatement)
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform