Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to determine if SQL Native Client is installed?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01470331
Message ID:
01470354
Vues:
46
>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform