Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to determine if SQL Native Client is installed?
Message
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01470331
Message ID:
01470354
Views:
45
>>Hi,
>>
>>Is it possible (and if yes, how) to determine from VFP code if SQL Server Native Client (for use with CursorAdapter DataSourceType = 'ADO') is installed?
>>
>>TIA
>
>Hi Dmitry,
>
>Something like:
>
>
>sqlsetprop(0,'DispLogin',3)
>localPC=ALLTRIM(LEFT(SYS(0),AT("#", SYS(0))-1))
>release gn
>store SQLSTRINGCONNECT(;
>	'Driver={SQL Native Client};'+;
>	'SERVER='+localPC+'\SQLEXPRESS;'+;
>	'Trusted_Connection=Yes');
>	TO gn		&& database master
>if gn<=0 
>* not installed
>.....
>
>
>There are differences in the native driver={Name} depending on SQL Version.
>
>Good Luck

Thank you, Yuri. I will try this approach.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Reply
Map
View

Click here to load this message in the networking platform