Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Odbc error on SqlExec
Message
From
18/10/2000 14:06:20
 
 
To
18/10/2000 13:56:55
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00431032
Message ID:
00431035
Views:
10
>Hi all-
>
>I'm trying to use an odbc connection to get to spss data. Here's the code:
>
>local lnhandle,lcSQL,lnReturn
>lnHandle=sqlconnect('spssdata') &&spssdata is dsn (driver is for *.sav files)
>lcSql="select * from e:\spss\cgstuff\salesdata" &&salesdata.sav is spss file
>lnReturn=sqlexec(lnHandle,lcSQL,'xCursor')
>
>SqlExec never succeeds (lnReturn is always -1). Here's snippet from the sql log:
>
>VFP6 ab:aa EXIT SQLExecDirect with return code -1 (SQL_ERROR)
> HSTMT 0x023766b0
> UCHAR * 0x01f514c0 [ -3] "select * from e:\spss\cgstuff\salesdata\ 0"
> SDWORD -3
>
> DIAG [S0000] [SPSS Inc.][SPSS ODBC Driver][IODLL]I/O DLL error (4)
>
>Can anyone give me an interpretation?
>

The system cannot open the specified file. Try adding the .SAV extension explicitly.
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
Reply
Map
View

Click here to load this message in the networking platform