CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2000
    Location
    King of Prussia PA
    Posts
    30

    RECORDCOUNT in .NET

    I'm just starting out with .NET and I had some question about how to get a recordcount in .NET. I am using the SQLDataReader object do get my select query information, and I need to know how many records are in it...I guess I could loop through and get a count, but it doesn't make sense to do that if there is a better way. If anyone can point me in the right direction, I would be most appreciative. Thank you for your time and help!

    Doug


  2. #2
    Join Date
    Apr 1999
    Location
    Philadelphia, PA, US
    Posts
    138

    Re: RECORDCOUNT in .NET

    How do you get SqlDataReader? Using ExecuteReader? ExecuteReader returns number of records affected by the executed query.

    http://www.c-sharpcorner.com
    C# and .NET Developer's Network


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured