Problem in Data base
-
Hi Can any one tell me how to check for the end of row condition in the data base table using c#. Is there any function like Movenext() to fetch next row values from the table?
-
Hi Can any one tell me how to check for the end of row condition in the data base table using c#. Is there any function like Movenext() to fetch next row values from the table?
Ashraj1982 wrote:
Can any one tell me how to check for the end of row condition in the data base table using c#. Is there any function like Movenext() to fetch next row values from the table?
It all depends on how you are getting the data out of the database in the first place. It sounds like you are using a DataReader. The DataReader.Read() pulls in the next row from the database. It returns true if a row was fetched or false if there are no more rows. Does this help?
"On two occasions, I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able to rightly apprehend the kind of confusion of ideas that could provoke such a question." --Charles Babbage (1791-1871) My: Website | Blog