count(*)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • deeas
    New Member
    • Feb 2009
    • 18

    count(*)

    hi
    please how i can read the result of : select count(*) command

    "SELECT count(*) as [a] FROM devices"
  • vekipeki
    Recognized Expert New Member
    • Nov 2007
    • 229

    #2
    Check this: SqlCommand.Exec uteScalar

    Comment

    • Curtis Rutland
      Recognized Expert Specialist
      • Apr 2008
      • 3264

      #3
      We have two on-site articles (one written by me!)


      Read the second one, I discuss exactly how to use the ExecuteScalar method.

      If you don't understand everything, you should read the first one too.

      Comment

      • hajoabdul
        New Member
        • Mar 2009
        • 7

        #4
        instead of ExecuteReader() try ExecuteScalar() am sure it will work

        Comment

        Working...