Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Odbc error on SqlExec
Message
 
 
To
18/10/2000 13:56:55
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00431032
Message ID:
00431312
Views:
13
Carlie,

Definately get rid of that path, it should just be a table name that is part of the database you are connected to.

>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?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform