简体   繁体   English

我们可以在数据集中存储多少个表?

[英]How many tables we can store in a dataset?

How many tables we can store in a dataset.我们可以在数据集中存储多少表。 How to count the limit of tables in a single dataset如何计算单个数据集中表的限制

Dataset Ds;
Int x=Ds.max tables;

It's System.Int32.MaxValue so 2,147,483,647 because DataSet.Tables returns a DataTableCollection that has a Count property which is of type System.Int32 .它是System.Int32.MaxValue所以是 2,147,483,647,因为DataSet.Tables返回一个DataTableCollection ,它有一个System.Int32类型的Count属性

In practice the memory is the limitation.在实践中,内存是限制。

But Hans Passant's is right: "if you need to know then you're doing it wrong".但 Hans Passant 是对的:“如果你需要知道那你就错了”。 So i hope that this is just a theoretical question.所以我希望这只是一个理论问题。

Max size is an Int32.最大大小是一个 Int32。 So there are maximum 2.147.483.647 (2 Billion) tables possible.所以最多可能有 2.147.483.647(20 亿)个表。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM