Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Find out if a particular OleDb provider is installed
Message
General information
Forum:
ASP.NET
Category:
ADO.NET
Environment versions
Environment:
C# 2.0
Miscellaneous
Thread ID:
01167807
Message ID:
01167976
Views:
22
>>Is there a way to find out if a particular OleDb provider is installed at runtime?
>>Thanks,
>>Einar
>
>Ohh beautiful is the .NET framework!!!
>
>
>System.Data.OleDb.OleDbEnumerator o = new System.Data.OleDb.OleDbEnumerator();
>System.Data.DataTable dt = o.GetElements();
>
>string s = "";
>for (int i = 0; i < dt.Rows.Count; i++)
>{
>	for (int j = 0; j < dt.Columns.Count; j++)
>	{
>		s += dt.Rows[i][j].ToString() + " ";
>	}
>	s += Environment.NewLine;
>}
>MessageBox.Show(s);
>
>
>Now this might query the (f@#$%@$!@#ing) registry behind the scenes but ignorance is bliss :)

Einar,

Thank you for sharing the solution. I often wondered myself about this. Which brings me to another question but I will post it as a separate thread.
"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
Next
Reply
Map
View

Click here to load this message in the networking platform