Reputation: 2835
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;
Upvotes: 1
Views: 1869
Reputation: 460148
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.
Upvotes: 5
Reputation: 11389
Max size is an Int32. So there are maximum 2.147.483.647 (2 Billion) tables possible.
Upvotes: 0