ConnectionReset : SqlCommandBuilder : Database C# Source Code


Custom Search

C# Source Code » Database » SqlCommandBuilder »

 

ConnectionReset








    
 


using System;
using System.Data.SqlClient;

class MainClass {
    public static void Main(string[] args) {
        string conString = @"Data Source=.\sqlexpress;" +
            "Database=Northwind;Integrated Security=SSPI;" +
            "Min Pool Size=5;Max Pool Size=15;Connection Reset=True;" +
            "Connection Lifetime=600;";

        SqlConnectionStringBuilder sb1 = new SqlConnectionStringBuilder(conString);
        Console.WriteLine("  Connection Reset = " + sb1.ConnectionReset);

        SqlConnectionStringBuilder sb2 = new SqlConnectionStringBuilder(conString);

        sb2.ConnectionReset = true;

        Console.WriteLine("  " + sb2.ConnectionString);

    }
}

 
    
   
  
   







HTML code for linking to this page:

Follow Navioo On Twitter

C# Source Code

 Navioo Database
» SqlCommandBuilder