我们可以添加到数据表中的总行总行、我们可以、数据表

2023-09-04 01:02:26 作者:如果有如果ˋ结局会怎样

我想知道是否有任何限制的行数,我们可以添加到数据表。 我做这在C#和.NET 2005。 其实我的应用程序读取大的文本文件约40 MB,应用程序通过行读取文本文件中的行并将其添加为行中的数据表中,一旦所有文件读取然后调用Update方法将数据更新到数据库中。

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.

感谢。

推荐答案

尝试谷歌下一次!

这是一个数据表可以存储的最大行数为16777216。

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

发现在 http://msdn.microsoft.com/ EN-US /库/ system.data.datatable.aspx