J
Jason
We are having problems where connections in a connection pool are being
exausted. We are using the Microsoft Application Block SQL Helper class and
are seeing the failure in the following method:
public static int ExecuteNonQuery(string connectionString, CommandType
commandType, string commandText, params SqlParameter[] commandParameters)
{
if( connectionString == null || connectionString.Length == 0 ) throw new
ArgumentNullException( "connectionString" );
using (SqlConnection connection = new SqlConnection(connectionString))
{
connection.Open();
return ExecuteNonQuery(connection, commandType, commandText,
commandParameters);
}
}
The application is Client/Server and it is difficult to understand why we
are running out of resources in the connection pool unless there is
something about the using block rather than explicity calling close that may
be causing the problem.
exausted. We are using the Microsoft Application Block SQL Helper class and
are seeing the failure in the following method:
public static int ExecuteNonQuery(string connectionString, CommandType
commandType, string commandText, params SqlParameter[] commandParameters)
{
if( connectionString == null || connectionString.Length == 0 ) throw new
ArgumentNullException( "connectionString" );
using (SqlConnection connection = new SqlConnection(connectionString))
{
connection.Open();
return ExecuteNonQuery(connection, commandType, commandText,
commandParameters);
}
}
The application is Client/Server and it is difficult to understand why we
are running out of resources in the connection pool unless there is
something about the using block rather than explicity calling close that may
be causing the problem.