Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to check if a datasource name exist in ODBC
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00916718
Message ID:
00916753
Vues:
7
Hi Jojo,

Check this code sample:

How to get a list of system DSNs (Data Source Name) with parameters
http://www.news2news.com/vfp/?example=375&function=577

The SQLGetPrivateProfileString function does the job.

* * *
Another option is direct reading of the Windows Registry at
HKEY_CURRENT_USER\Software\ODBC\ODBC.INI
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform