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

发布于 2024-09-29 02:42:01 字数 215 浏览 0 评论 0原文

我想知道我们可以添加到数据表的行数是否有限制。 我正在 C# 和 .NET 2005 中执行此操作。 实际上,我的应用程序正在读取大约 40 MB 的大型文本文件,应用程序逐行读取文本文件,并在所有文件读取后将其作为行添加到数据表中,然后调用更新方法将数据更新到数据库。

我不确定我们可以向数据表添加多少行。我只是想让我的应用程序在未来如果文件大小再次增加时不会抛出任何错误。

谢谢。

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

断念 2024-10-06 02:42:01

DataTable 可以存储的最大行数为 16,777,216

DataTable 类

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

DataTable Class

丢了幸福的猪 2024-10-06 02:42:01

下次试试谷歌吧!

DataTable 可以存储的最大行数为 16,777,216。

位于 http://msdn.microsoft.com/en-us /library/system.data.datatable.aspx

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文