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:
01167855
Views:
12
>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 :)
Semper ubi sub ubi.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform