Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ODBC driver version
Message
General information
Forum:
Visual FoxPro
Category:
Client/server
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01183169
Message ID:
01183172
Views:
18
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform