Click here to Skip to main content
15,885,366 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi All

My requirement is to bring the data from sql server but i need to bring 6 lakhs line items from database

when i am using dataadapter.fill(dataset) i am getting memory out of exception

please guide me to solve the issue............

Thanks in Advance
Posted

1 solution

Your dataset is too big.Datasets are stored in computer memory so i guess yours is using too much memory. Try using a datareader or writing xml and the reading from there. Given the number of lines you are trying to retrieve you should go for connected data access not disconnected.
 
Share this answer
 

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