Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Odbc error on SqlExec
Message
De
18/10/2000 14:06:20
 
 
À
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:
00431035
Vues:
11
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform