Total rows that we can add to datatable

☆樱花仙子☆ 提交于 2019-12-30 22:16:46

问题


I wants to know whether there is any limit for number of rows that we can add to datatable. I am doing this in C# and .NET 2005. Actually my application is reading large text file around 40 MB,application reads text file line by line and adds it as row in datatable once all file reads then calls update method to update data to database.

I am not sure how many rows we can add to datatable. I just want to make my application secure from throwing any error in future if file size again increase.

Thanks.


回答1:


Try google next time!

The maximum number of rows that a DataTable can store is 16,777,216.

Found on http://msdn.microsoft.com/en-us/library/system.data.datatable.aspx




回答2:


The maximum number of rows that a DataTable can store is 16,777,216

DataTable Class



来源:https://stackoverflow.com/questions/4040523/total-rows-that-we-can-add-to-datatable

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!