Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Connection Handle Is Invalid
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01084156
Message ID:
01084172
Vues:
9
What do you mean, "It's still 1"? Most likely it is just a variable that remain 1.
lnConnectionHandle=SQLSTRINGCONNECT(...)
=SQLDISCONNECT(0)
*now connection does not exist, and any sql command with it will fail.
You may check the connection with, say, this:
on error llerr=.t.
sqlexec(.....)
on error
if aerror(aa)>0
* error occurs
?aa[2]
endif
.....
>I'm opening a connection to SQL in VFP 9.
>
>SQLSTRINGCONNECT() is returning 1.
>
>Later, when I attempt to do a SQLEXEC(), I get "Connection Handle Is Invalid".
>
>It's still 1, so I'm not sure what's wrong.
>
>Anyone?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform