Maximum Rows for a datatable and data readers

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • napstar
    New Member
    • Nov 2006
    • 55

    Maximum Rows for a datatable and data readers

    What is maximum number of rows a datatable, OleDbDataReader and SqlDataReader can hold?
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #2
    I'm not sure actually. I've used a datatable with up to around 40k I think. Takes a very long time to do anything with though.

    Comment

    • Curtis Rutland
      Recognized Expert Specialist
      • Apr 2008
      • 3264

      #3
      I've actually loaded a DataTable with over 2 million records once...not on purpose; I forgot to code in my WHERE clause :/

      It crashed because I ran out of memory but it kept loading. I think that the maximum theoretical rows is less important than what you can actually fit in memory and still be useful.

      Comment

      Working...