Should I use a data TABLE if I need ONLY one row of data?
I do a SQL SELECT and always get back one row of data.
What is the simplest structure that I can use besides using a table? 开发者_运维问答 Thanks.
The simplest thing would probably be a DataReader
. Here's an MSDN sample on how to read data with a DataReader
.
yah its absolutely right that you have to use the datareader, because there is only one row so you dont need to move backward and datareader is forward only, so you dont have anyproblem with that.
精彩评论