CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2000
    Posts
    670

    Question How can I get one field from a row from the DB?

    How can I get one field from a row from the DB?
    I have a select query which brings me one row with one column.
    How can I put this information in a String object?

  2. #2
    Join Date
    Nov 2002
    Location
    Singapore
    Posts
    1,890
    use SqlDataReader to get results
    and perform its Read method in a loop so that you get each row.

    its .GetValue(index) should return the field value(column value)

    Paresh

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