开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜