DataReader is just a basic object that reads one record at a time and needs to be connected to the database. DataSet can work in "disconnected" mode and can represent your entire database in memory.
I like to think of it like this... the DataSet is Microsofts favorite child, while the DataReader gets little reference, and remains in his room where few people will find him.
May i know if i want to used 2 connect SQL at a same time,which shall i used? I try DataReader, when i try to connect other datareader, it appear error and ask me to close my 1st reader before open 2nd, may i know what the problem?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.