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. Web Development
  3. ASP.NET
  4. Excel to sql...........

Excel to sql...........

Scheduled Pinned Locked Moved ASP.NET
databasecsshelptutorialquestion
2 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.
  • M Offline
    M Offline
    ManickaSudar
    wrote on last edited by
    #1

    Hi, I want to convert excel sheet data to sql database.I have completed it using OLEDB connection and sql query.I retrieved the data from excel and bind the data into dataset using OLEDataAdapter and then dataset content will be displayed on grid.If the excel sheet data is of same datatype means it is working properly.See the excel sheet example... Name Mark1 Mark2 Ram 87 76 somu 45 65 james 65 98 When converting this excel to sql it is working properly.. See the problem below.. Name Mark1 Mark2 Ram 87 76 somu 45 AB james 65 98 when i am giving 'AB' to mark it shows null value at that specified column(ie,blank space on grid for the data 'AB'). This is my problem...How can i rectify this....Any alternative solutions... Thanks in Advance

    N 1 Reply Last reply
    0
    • M ManickaSudar

      Hi, I want to convert excel sheet data to sql database.I have completed it using OLEDB connection and sql query.I retrieved the data from excel and bind the data into dataset using OLEDataAdapter and then dataset content will be displayed on grid.If the excel sheet data is of same datatype means it is working properly.See the excel sheet example... Name Mark1 Mark2 Ram 87 76 somu 45 65 james 65 98 When converting this excel to sql it is working properly.. See the problem below.. Name Mark1 Mark2 Ram 87 76 somu 45 AB james 65 98 when i am giving 'AB' to mark it shows null value at that specified column(ie,blank space on grid for the data 'AB'). This is my problem...How can i rectify this....Any alternative solutions... Thanks in Advance

      N Offline
      N Offline
      needhelpinnet
      wrote on last edited by
      #2

      first filter it out then type convert.

      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