Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ODBC in VFP
Message
De
05/10/2011 11:59:59
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
01525567
Message ID:
01525650
Vues:
65
I use:
STORE SQLCONNECT(_SCREEN.zSqlDsn, _SCREEN.zSqlId, _SCREEN.zSqlPword) TO returnValue
where:
(_SCREEN.zSqlDsn = datasource name

since the format is:
SQLConnect(cDataSourcename, cUserID, cPassword)
I'm not sure how to insert the database name.

please advise
thanks for the help

regards,

Jerry



>>I'm using MySQL database.
>>each time I want to switch to another database I have to go through MySQL ODBC.
>>is that possible to change the database from inside VFP?
>>
>>regards,
>>
>>Jerry
>
>Once you have a connection that you created with SQLSTRINGCONNECT() you can switch database:
>
>SQLEXEC(nConnectionHandle,"USE MyDatabase;")
>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform