SqlDataReader does not return all records (3rd attempt)
I've tried to find solution for this problem twice before, but unfortunately those answers haven't provided permanent fix, so here I am, giving it another try. I have an SQL Server stored procedure that returns list of 1.5 million integer IDs. I am calling this SP from ASP.NET/VB.NET code and executing a SqlDataReader: m_dbSel.CommandType = CommandType.StoredProcedure m_dbSel.CommandText = CstSearch.SQL.SP_RS_SEARCH_EX oResult = m_dbSel.ExecuteReader(CommandBehavior.CloseConnection) Then I am passing that reader to a class constructor to build Generic List(Of Integer). The code is very basic: