Några tips för optimering av följande kod?
public static SqlDataReader ExecuteReader(string Sql)
{
SqlCommand Command = new SqlCommand(Sql, Connection);
try
{
if (Command.Connection.State != ConnectionState.Open)
{
Command.Connection.Open();
}
}
catch (Exception)
{
throw;
}
return Command.ExecuteReader(CommandBehavior.CloseConnection);
}