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. Database & SysAdmin
  3. Database
  4. Query to access excel data....

Query to access excel data....

Scheduled Pinned Locked Moved Database
databasehelpquestion
5 Posts 2 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.
  • A Offline
    A Offline
    AnnnS
    wrote on last edited by
    #1

    hi all i am using odbc connection to query the data from excel ... i am able to ... the query i use is select empid from [sheet1$]... (empid is the column header in the first row) the problem is i want to access the data by ponting the index of the column .. something like select column1 from [sheet1$] can anyone suggest the query for that ??? Annns

    S 1 Reply Last reply
    0
    • A AnnnS

      hi all i am using odbc connection to query the data from excel ... i am able to ... the query i use is select empid from [sheet1$]... (empid is the column header in the first row) the problem is i want to access the data by ponting the index of the column .. something like select column1 from [sheet1$] can anyone suggest the query for that ??? Annns

      S Offline
      S Offline
      sam
      wrote on last edited by
      #2

      SELECT * FROM [Sheet1$A1:A1000]

      A 1 Reply Last reply
      0
      • S sam

        SELECT * FROM [Sheet1$A1:A1000]

        A Offline
        A Offline
        AnnnS
        wrote on last edited by
        #3

        thanx for the reply :).. hope it will help me... but still one more doubt:confused:... then how will we get the value from result set?? like rs.getString("?"); ??? Thnks Annns

        S 1 Reply Last reply
        0
        • A AnnnS

          thanx for the reply :).. hope it will help me... but still one more doubt:confused:... then how will we get the value from result set?? like rs.getString("?"); ??? Thnks Annns

          S Offline
          S Offline
          sam
          wrote on last edited by
          #4

          use adapter to fill data .and use them like myDataTable.Rows[row_num][column_no]

          A 1 Reply Last reply
          0
          • S sam

            use adapter to fill data .and use them like myDataTable.Rows[row_num][column_no]

            A Offline
            A Offline
            AnnnS
            wrote on last edited by
            #5

            thanx so much .. let me try it out !!

            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