Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. sql query

sql query

Scheduled Pinned Locked Moved C#
databasetutorial
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    engg_sukreet
    wrote on last edited by
    #1

    how to retrive Columns name with each row with sql query.... suppose i have 10 rows in a table........

    K P 2 Replies Last reply
    0
    • E engg_sukreet

      how to retrive Columns name with each row with sql query.... suppose i have 10 rows in a table........

      K Offline
      K Offline
      Keith Barrow
      wrote on last edited by
      #2

      Please move this message to the General Databases forum.

      Dalek Dave: There are many words that some find offensive, Homosexuality, Alcoholism, Religion, Visual Basic, Manchester United, Butter. Pete o'Hanlon: If it wasn't insulting tools, I'd say you were dumber than a bag of spanners.

      P 1 Reply Last reply
      0
      • E engg_sukreet

        how to retrive Columns name with each row with sql query.... suppose i have 10 rows in a table........

        P Offline
        P Offline
        PIEBALDconsult
        wrote on last edited by
        #3

        Your question isn't very clear. When using a DataReader you can use IDataReader.GetSchemaTable to get information about the columns retrieved.

        1 Reply Last reply
        0
        • K Keith Barrow

          Please move this message to the General Databases forum.

          Dalek Dave: There are many words that some find offensive, Homosexuality, Alcoholism, Religion, Visual Basic, Manchester United, Butter. Pete o'Hanlon: If it wasn't insulting tools, I'd say you were dumber than a bag of spanners.

          P Offline
          P Offline
          PIEBALDconsult
          wrote on last edited by
          #4

          I disagree.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups