Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get the database drivers on the machine
Message
 
To
19/11/2009 06:20:25
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01435535
Message ID:
01435537
Views:
93
This message has been marked as the solution to the initial question of the thread.
>how to get the database drivers on the machine so as to create a stringconnect to sqlserver
>Rajesh
CLEAR
DECLARE INTEGER SQLGetInstalledDrivers IN odbccp32 STRING @, INTEGER, INTEGER @
m1 = SPACE(80000)
m2 = 0
IF SQLGetInstalledDrivers(@m1, 80000, @m2) # 0
    m1 = STRTRAN(LEFT(m1, m2),CHR(0), CHR(13)+CHR(10))
    lnLines = ALINES(aaaa,m1)
    FOR lnFor = 1 TO lnLines
        ? aaaa[lnFor]
    NEXT
ENDIF
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform