Created
March 28, 2018 02:14
-
-
Save Fhernd/99a71d07c71e372a7c63975a248c9f54 to your computer and use it in GitHub Desktop.
Creación de un pool de conexiones. OrtizOL.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Data.SqlClient; | |
namespace R902PoolConexiones | |
{ | |
class R902Programa | |
{ | |
static void Main(string[] args) | |
{ | |
using (SqlConnection conexion = new SqlConnection()) | |
{ | |
conexion.ConnectionString = @"Data source =.\SQLEXPRESS; Initial catalog = Northwind;Integrated Security=SSPI;" + | |
"Min Pool Size= 5; Max Pool Size = 15; Connection Reset = True; Connection Lifetime = 600"; | |
conexion.Open(); | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment