Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Find out if a particular OleDb provider is installed
Message
 
To
07/11/2006 15:32:16
Keith Payne
Technical Marketing Solutions
Florida, United States
General information
Forum:
ASP.NET
Category:
ADO.NET
Environment versions
Environment:
C# 2.0
Miscellaneous
Thread ID:
01167807
Message ID:
01167847
Views:
22
>>Is there a way to find out if a particular OleDb provider is installed at runtime?
>>Thanks,
>>Einar
>
>Einar,
>
>I found this one the web:
>List of OLEDB providers on local or remote computer
>
>   'The script writes all installed OLEDB providers.
>  Option Explicit
>
>  Dim OutText, S, Key
>
>  'Create a server object
>  Set S = CreateObject("RegEdit.Server")
>
>  'Optionally connect to another computer
>'  S.Connect "muj"
>
>  OutText = OutText & "OLEDB providers installed on " & _
>    s.Name & ":" & vbCrLf
>  OutText = OutText & "************************************" & vbCrLf
>
>  For Each Key In S.GetKey("HKCR\CLSID").SubKeys
>    If Key.ExistsValue("OLEDB_SERVICES") Then
>      OutText = OutText & Key.Values("").Value &  vbtab & _
>        " : " &   Key.SubKeys("OLE DB Provider").Values("") & vbCrLf
>    End If
>  Next
>
>  Wscript.Echo OutText
>
>
>So it appears that you have to look in the registry.

Thanks for the reply.
I was hoping I could get that information elsewhere, but it looks like I have to look in the f@#$#*@)$ing registry <s>.
Any clue how to translate this to C#? C# does not late-bind as nice as VB.
Semper ubi sub ubi.
Previous
Reply
Map
View

Click here to load this message in the networking platform