Groups | Blog | Home
all groups > dotnet ado.net > february 2008 >

dotnet ado.net : wanna return the count(*) through SqlDataReader


John Naing
2/13/2008 9:15:22 PM
Hi guys,

I'm writing a web service which return the count(*) from database.
pls guide me how to do that


Miha Markic
2/14/2008 9:13:36 AM
Use IDbCommand.ExecuteScalar method

--
Miha Markic [MVP C#, INETA Country Leader for Slovenia]
RightHand .NET consulting & development www.rthand.com
Blog: http://cs.rthand.com/blogs/blog_with_righthand/

[quoted text, click to view]
AddThis Social Bookmark Button