| Author: Happy Coder 19 Nov 2008 | Member Level: Gold | Rating:  Points: 4 |
Offcourse you can use it, But i would suggest you to use ExecuteScalar for Max or Top as they are made for it,
Even if you use datareader, it doesnt make any difference, it exeuctes it as like another select query and returns are single record with single column. thats purly waste of resource.
happy Coder.
Geek is back. ____Happy_Coder____ If you feel this is helpful, RATE IT.
|
| Author: Pavani 19 Nov 2008 | Member Level: Gold | Rating:  Points: 1 |
yes. But because it fecthes a single value, better to use executescalar.
|