简体   繁体   中英

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 .

In practice the memory is the limitation.

But Hans Passant's is right: "if you need to know then you're doing it wrong". So i hope that this is just a theoretical question.

Max size is an Int32. So there are maximum 2.147.483.647 (2 Billion) tables possible.

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.

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