62,047
社区成员
发帖
与我相关
我的任务
分享
public static DataTable ReturnDataTable(string cmdtext, CommandType ct)
{
DataTable dt = new DataTable();
cmd = new SqlCommand(cmdtext, GetConn());
cmd.CommandType = CommandType.Text;
SqlDataReader dr = null;
using (dr = cmd.ExecuteReader(CommandBehavior.CloseConnection))
{
dt.Load(dr);
}
return dt;
}