using System; using System.Data.OracleClient; using System.Data.OleDb; using System.Data.Odbc; class Program { static void Main(string[] args) { string oledbConnectString = "Provider=MSDAORA;Data Source=ORCL;User Id=hr;Password=password;"; using (OleDbConnection connection = new OleDbConnection(oledbConnectString)) { connection.Open( ); Console.WriteLine("ConnectionString = {0}\n", oledbConnectString); Console.WriteLine("State = {0}", connection.State); Console.WriteLine("DataSource = {0}", connection.DataSource); Console.WriteLine("ServerVersion = {0}", connection.ServerVersion); } } }