OleDbConnection.ReleaseObjectPool() : OleDbConnection « System.Data.OleDb « C# / C Sharp by API






OleDbConnection.ReleaseObjectPool()

  

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();
  }
}

   
    
  








Related examples in the same category

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