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. transfer data from excel file to sql server programatically

transfer data from excel file to sql server programatically

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netdatabasesql-serversysadmin
3 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
    amit__8
    wrote on last edited by
    #1

    how to transfer data from excel file to sql server's tables in asp.net programatically i can't use wizard can any body will help me regarding the same thanks in advance

    C 1 Reply Last reply
    0
    • A amit__8

      how to transfer data from excel file to sql server's tables in asp.net programatically i can't use wizard can any body will help me regarding the same thanks in advance

      C Offline
      C Offline
      chinnasrihari
      wrote on last edited by
      #2

      Hi, It is big procee Let give you hint Use the OleDbProvider and open the file and file in to data set and update to database ExcelConnectionString = Provider=Microsoft.Jet.OLEDB.4.0;Extended Properties="Excel 8.0;HDR=YES";Data Source = " & ExcelFilePath strSQL = "select Col1,Col2 from [Sheet1$]" SomeDataAdapter = New OleDbDataAdapter(strSQL, ExcelConnectionString ) have SomeDataSet declared daCollateral.Fill(SomeDataSet, ) :)try this Chinna Srihari Tech Lead, Capgemini

      A 1 Reply Last reply
      0
      • C chinnasrihari

        Hi, It is big procee Let give you hint Use the OleDbProvider and open the file and file in to data set and update to database ExcelConnectionString = Provider=Microsoft.Jet.OLEDB.4.0;Extended Properties="Excel 8.0;HDR=YES";Data Source = " & ExcelFilePath strSQL = "select Col1,Col2 from [Sheet1$]" SomeDataAdapter = New OleDbDataAdapter(strSQL, ExcelConnectionString ) have SomeDataSet declared daCollateral.Fill(SomeDataSet, ) :)try this Chinna Srihari Tech Lead, Capgemini

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

        thanks for the help, that i did but it shows more than 4000 records while my excel file contains only 500 and the problem is that how i will transfer the same into sql tables

        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