Connection Pooling Sample : OleDbConnection : ADO.Net C# Examples


C# Examples » ADO.Net » OleDbConnection »

 

Connection Pooling Sample









    
using  System;
using  System.Data;
using  System.Data.SqlClient;
using  System.Data.OleDb;

class  MainClass
{
    static  void  Main(string[]  args)
    {
                string  ConnectionString  =  @"Provider=Microsoft.Jet.OLEDB.4.0;  Data  Source=c:\Northwind.mdb";

                OleDbConnection  conn  =  new  OleDbConnection(ConnectionString);              
                
                conn.Open();

                conn.Close();
                OleDbConnection.ReleaseObjectPool();
    }
}
    
   
  
   




HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo ADO.Net
» OleDbConnection