Enumerate providers on System / Understanding providers and dataproviders

  • Thread starter Thread starter Chuck Vance
  • Start date Start date
C

Chuck Vance

Hi ng,
when I use ADO.NET 2.0 System.Data.Common.DbProviderFactories-Class to enumerate the providers it get:
Odbc Data Provider
OleDb Data Provider
OracleClient Data Provider
SqlClient Data Provider

But how can I get the names used in Connection-String such like "provider=MSDAORA;...". ?

Chuck
 
You can find it in the documentation for the .ConnectionString
property of the connection object or the builder class, e.g.,
OleDbConnectionStringBuilder or OleDbConnection.ConnectionString. If
all else fails, connectionstrings.com has a wide selection.

-Mary
 
Back
Top