Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can not connect ?
Message
 
 
À
20/09/2004 04:38:28
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00943920
Message ID:
00943984
Vues:
25
Whenever you get an error result value from any SQL function you should call aerror() and look at the content of the output array to find more detailed information on what is wrong.

A lot of developers wrap these SPT commands with their own functions/methods in order to facilitate the trapping of these errors and handling them.

>Hi,
>
>My program as below :-
>
>*****
>CON=SQLSTRINGCONNECT("DRIVE=MYSQL ODBC 3.51 DRIVER;SERVER=localhost;UID=a;PWD=a;DATABASE=a")
>
>IF CON>0
> =MESSAGEBOX("OK")
>ELSE
> =MESSAGEBOX("FAILD")
>ENDIF
>*****
>
>I can not connect MySQL auto, it will prompt me to select the Driver by manually.
>
>Is't something wrong in my command line at "CON=SQLSTRING....."
>
>I am sure that it can connected, if i select by manually.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform