Click here to Skip to main content
15,896,606 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi friends,

can i bind one Lakh records to dataset, What happend if i bind, please suggest me.
Posted
Comments
Kornfeld Eliyahu Peter 1-Jul-14 7:26am    
DataSet can hold millions of records, but for what purpose? What would you do with that amount of records? Bind to where? Display it? On what surface?
Awadhendra Tripathi 1-Jul-14 9:15am    
after binding 1 lakh records what you will do with that records :)

The maximum number of rows that a DataTable can store is 16,777,216.
reference:http://msdn.microsoft.com/en-us/library/system.data.datatable.aspx[^]
you can go up to that but large number of records will lead many other issues like, network timeouts, memory issues, performance etc..
you better rethink about your application architecture
 
Share this answer
 
Yes you can add 1Lak records to dataset.
For this here you can do like this
1.Read all the records and Split the records into 10000 or 25000 through your code
2.Use threads to process the records(Store data into database)

Benefits:
With this you can easily find how many records are not get inserted or updated and save the failed records into a separate CSV or Excel file
No network issues.
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900