new OleDbConnection : OleDbConnection « System.Data.OleDb « C# / C Sharp by API






new OleDbConnection

  
using System;
using System.Data.OleDb;

class MainClass
{
  static void Main(string[] args)
  {
    OleDbConnection MyConnection = new OleDbConnection (@"Provider=Microsft.Jet.OLEDB.4.0; Data Source = c:\Northwind.mdb");
    MyConnection.Open();      
  }
}

   
    
  








Related examples in the same category

1.OleDbConnection.ConnectionString
2.OleDbConnection.CreateCommand
3.OleDbConnection.Database
4.OleDbConnection.DataSource
5.OleDbConnection.GetOleDbSchemaTable
6.OleDbConnection.ReleaseObjectPool()
7.OleDbConnection.ServerVersion
8.OleDbConnection.State