public static SqlDataReader ExecuteReader(string connectionString, CommandType commandType, string commandText, params SqlParameter[] commandParameters) { SqlConnection cn = new SqlConnection(connectionString); cn.Open(); try { return ExecuteReader(cn, (SqlTransaction)null, commandType, commandText, commandParameters, SqlConnectionOwnership.Internal); } catch { cn.Dispose(); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)