Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ODBC driver version
Message
 
À
06/01/2007 13:37:03
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01183169
Message ID:
01183172
Vues:
19
Hi Andrus,
LOCAL liLen,lcOut,liOut,lihdbc
#DEFINE SQL_DRIVER_ODBC_VER                 77
#DEFINE SQL_ODBC_VER                 10

lihdbc=SQLSTRINGCONNECT(connectstring)
DECLARE INTEGER SQLGetInfo IN ODBC32.DLL INTEGER,;
        INTEGER, STRING @, INTEGER, INTEGER @
liLen=254
lcOut=SPACE(liLen)
liOut=0
?SQLGetInfo(SQLGETPROP(lihdbc,"odbchdbc"), SQL_ODBC_VER, @lcOut, liLen, @liOut)
?lcOut,liOut
?SQLGetInfo(SQLGETPROP(lihdbc,"odbchdbc"), SQL_DRIVER_ODBC_VER, @lcOut, liLen, @liOut)
?lcOut,liOut

=SQLDISCONNECT(lihdbc)
MartiJ

>I need to determine ODBC driver version from my VFP 9 application.
>ODBC has SQLDRIVERS() function for this.
>I looked into VFP 9 help but have'nt found any information.
>
>Where to find sample VFP code which returns ODBC driver version ?
"Navision is evil that needs to be erazed... to the ground"

Jabber: gorila@dione.zcu.cz
Jabber? Jabbim
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform