Hello All
What is the total no of records that can be fetched in a Ado.Net datatable?
Hello All
What is the total no of records that can be fetched in a Ado.Net datatable?
More detail : What is the maximum of record dataset can hold?
you can have 2^32 rows inside a DataTable and 2^ 32 tables inside a dataset. thats somewhere around 2 billion. But having so many records (~billion) is not a good approach. And you run the risk of crossing the datatable record limit too, sooner or later. Its advisable that you get the records in chunk, I mean in the report the user will not see everything in one go, it can be difficult for him to scroll through all the data, so use custom pagination, i.e. show only 100 (or any fixed number) of records in one page, this way you will save bandwidth as well as make your app faster
The DataRowCollection has an indexer with an int parameter, so Int32.MaxValue.
Or the size of your available memory, whatever comes sooner.
Well, the Rows.Count property is an Int32, so I'd be making a guess the upper limit is int.MaxValue (2147483647).