Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can not connect ?
Message
 
 
To
20/09/2004 04:38:28
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00943920
Message ID:
00943984
Views:
27
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform