Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Me and MySql
Message
De
28/01/2002 10:34:51
 
 
À
28/01/2002 10:14:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Titre:
Divers
Thread ID:
00611540
Message ID:
00611561
Vues:
25
This message has been marked as the solution to the initial question of the thread.
>1. When I connect to the data source (lDB = sqlconnect('test') ) results in the ODBC dialog appearing on the screen. All I do then is press OK and I have a connection.

Have you tried the following command before attempting the SQLConnect()?
SQLSetProp(0, "DispLogin", 3)
>2. I am not able to create a table with the following syntax:
>
>llok = sqlexec(lDB,'create table junk ( fld1 c(10) )')

I would guess that MySQL doesn't understand the field type. Try something like create table junk (fld1 char(10)).

Also, you should take a look at what AERROR() returns:
for x = 1 to AERROR(lsterr)
    messagebox(lsterr(x, 2))
endfor
HTH!
Sylvain Demers
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform