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. Upload data from excel file to databse.

Upload data from excel file to databse.

Scheduled Pinned Locked Moved C#
csharpquestion
8 Posts 6 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.
  • R Offline
    R Offline
    Rajeshwar Code Developer
    wrote on last edited by
    #1

    Hi Here i am trying to do is i have one excel file has some data called emails. Now i want to read that data from excel sheet and send to databese table. How can i do it using c#.

    try and try untill reach success..

    A C I S S 5 Replies Last reply
    0
    • R Rajeshwar Code Developer

      Hi Here i am trying to do is i have one excel file has some data called emails. Now i want to read that data from excel sheet and send to databese table. How can i do it using c#.

      try and try untill reach success..

      A Offline
      A Offline
      Ashfield
      wrote on last edited by
      #2

      There are several ways, probably the easiest is to read the excel file using ODBC - although you can also do this using SQL Server Manager and importing your data if its a one off load.

      Bob Ashfield Consultants Ltd

      R 1 Reply Last reply
      0
      • R Rajeshwar Code Developer

        Hi Here i am trying to do is i have one excel file has some data called emails. Now i want to read that data from excel sheet and send to databese table. How can i do it using c#.

        try and try untill reach success..

        C Offline
        C Offline
        Calla
        wrote on last edited by
        #3

        http://tinyurl.com/2aml3sa[^]

        1 Reply Last reply
        0
        • R Rajeshwar Code Developer

          Hi Here i am trying to do is i have one excel file has some data called emails. Now i want to read that data from excel sheet and send to databese table. How can i do it using c#.

          try and try untill reach success..

          I Offline
          I Offline
          Ice_Freez05
          wrote on last edited by
          #4

          you can also upload excel file through SSIS which is included in MS SQL Server 2005.

          1 Reply Last reply
          0
          • R Rajeshwar Code Developer

            Hi Here i am trying to do is i have one excel file has some data called emails. Now i want to read that data from excel sheet and send to databese table. How can i do it using c#.

            try and try untill reach success..

            S Offline
            S Offline
            sanforjackass
            wrote on last edited by
            #5

            1-set the database 2-if you want to show the process make DataGraidView and set it as the database 3-then copy all the data from excel file to DataGraidView 4-then each row insert it into data base (there is a lot of articles in code project explain how to read write from excel file)

            EASY COME EASY GO

            1 Reply Last reply
            0
            • R Rajeshwar Code Developer

              Hi Here i am trying to do is i have one excel file has some data called emails. Now i want to read that data from excel sheet and send to databese table. How can i do it using c#.

              try and try untill reach success..

              S Offline
              S Offline
              surender m
              wrote on last edited by
              #6

              Hi, You can make use of OLEDB connection.(Microsoft.Jet.OLEDB.4.0) so that u can access sheet with SQL Query. like select * from [sheet1] Hope this could help you, Regards Surender No Defeat Is Final Until You Stop Trying!.......

              R 1 Reply Last reply
              0
              • A Ashfield

                There are several ways, probably the easiest is to read the excel file using ODBC - although you can also do this using SQL Server Manager and importing your data if its a one off load.

                Bob Ashfield Consultants Ltd

                R Offline
                R Offline
                Rajeshwar Code Developer
                wrote on last edited by
                #7

                Hi Bob!!! Thanks for reply.

                try and try untill reach success..

                1 Reply Last reply
                0
                • S surender m

                  Hi, You can make use of OLEDB connection.(Microsoft.Jet.OLEDB.4.0) so that u can access sheet with SQL Query. like select * from [sheet1] Hope this could help you, Regards Surender No Defeat Is Final Until You Stop Trying!.......

                  R Offline
                  R Offline
                  Rajeshwar Code Developer
                  wrote on last edited by
                  #8

                  Hi surender thanks for reply, actallu i m doing same way

                  try and try untill reach success..

                  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