日期:2014-05-17 浏览次数:20624 次
            DataTable dt = new DataTable();
            cmd = new SqlCommand(sql, Getconn());
            using (str = cmd.ExecuteReader(CommandBehavior.CloseConnection))
            {
                dt.Load(str);
            }
           
            return dt;
            DataTable dt = new DataTable();
            using (cmd = new SqlCommand(sql, Getconn()))
           {
                str = cmd.ExecuteReader();
                dt.Load(str);
            }
           return dt;