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:29:55
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:
01435539
Views:
42
>>>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
>>
>
>Thanks it what I wanted.
>But why can't I mark it as solution.
>Back after lot of days.
>Rajesh

:-)
You marked it already :-)
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Reply
Map
View

Click here to load this message in the networking platform