Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BEginner question on SQL script
Message
From
14/02/2000 14:34:47
 
 
To
14/02/2000 12:54:22
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00331801
Message ID:
00331859
Views:
15
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform