Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Odbc error on SqlExec
Message
 
 
À
18/10/2000 13:56:55
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00431032
Message ID:
00431312
Vues:
15
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform