I know DataTable has a Minimum Capacity Attribute but is there a Maximum Capacity Attribute? Where if a maximum size is reached while filling the object with data an exception is generated?
eg:
DataTable table = new DataTable();
using(SqlCommand cmd = new SqlCommand(sqlQuery, sqlConn))
{
SqlDataAdapter ds = new SqlDataAdapter(cmd);
da.Fill(table); //generate exception if DataTable is filled with too much data (e.g. over 100mb in size)
}
Two part answer:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.