Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get target database of an ODBC
Message
De
19/01/2003 22:21:21
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00586814
Message ID:
00743358
Vues:
48
Sergey,

I have ran each line with AERROR(). Here is the return (REM: I do have a valid connection, lnConn = 1):
>*-- But, here is a problem.  lnTableCount Returns -1
lnTableCount = SQLTABLES(lnConn, 'TABLE', "_tablelist")

*-- AERROR RETURNS:
*-- [1] 1526
*-- [2] "Connectivity error: [Microsoft][ODBC Visual FoxPro Driver]Function sequence error"
*-- [3] "[Microsoft][ODBC Visual FoxPro Driver]Function sequence error"
*-- [4] S1010
*-- [5] 0
*-- [6] 1
*-- [7] .NULL.

lnData = SQLEXEC(lnConn, "SELECT * FROM TEST1", "_TESTDBF1")
*-- AERROR RETURNS:
*-- [1] 1526
*-- [2] "Connectivity error: [Microsoft][ODBC Visual FoxPro Driver]Invalid file descriptor."
*-- [3] "[Microsoft][ODBC Visual FoxPro Driver]Invalid file descriptor."
*-- [4] S1000
*-- [5] 111
*-- [6] 1
*-- [7] .NULL.
So, there is something wrong in there but I am missing it. I know that [6] is the correct handle ID. The reason I am trying this is to learn how to get data without PATH() type commands, or hardcoding any path at all.

Ric
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform