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. storing data from a .txt file into SQL database

storing data from a .txt file into SQL database

Scheduled Pinned Locked Moved ASP.NET
databasecsharpsql-serversysadmin
6 Posts 4 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.
  • I Offline
    I Offline
    inayat basha
    wrote on last edited by
    #1

    i have an text file with some data. i want load the text file in mu sql server 2005 database by using vb.net. can any one plzz help me... Regards, S.Inayat Basha.

    G K L 3 Replies Last reply
    0
    • I inayat basha

      i have an text file with some data. i want load the text file in mu sql server 2005 database by using vb.net. can any one plzz help me... Regards, S.Inayat Basha.

      G Offline
      G Offline
      Gamzun
      wrote on last edited by
      #2

      Open the file, read text from it and store it into database. Do you want us to develop it for you?

      Please don't forget to mark 'Good Answer', if you find it really a good one! Kashif

      I 1 Reply Last reply
      0
      • I inayat basha

        i have an text file with some data. i want load the text file in mu sql server 2005 database by using vb.net. can any one plzz help me... Regards, S.Inayat Basha.

        K Offline
        K Offline
        Kannan Ar
        wrote on last edited by
        #3

        Open the file and read content using the classes in System.IO, then insert it into sql server. What you tried to accomplish this?

        1 Reply Last reply
        0
        • I inayat basha

          i have an text file with some data. i want load the text file in mu sql server 2005 database by using vb.net. can any one plzz help me... Regards, S.Inayat Basha.

          L Offline
          L Offline
          loyal ginger
          wrote on last edited by
          #4

          If the text file is already in proper format, use this:

          load data local infile "my_data.txt" into table my_table;

          1 Reply Last reply
          0
          • G Gamzun

            Open the file, read text from it and store it into database. Do you want us to develop it for you?

            Please don't forget to mark 'Good Answer', if you find it really a good one! Kashif

            I Offline
            I Offline
            inayat basha
            wrote on last edited by
            #5

            can u plz send me the code for it....

            G 1 Reply Last reply
            0
            • I inayat basha

              can u plz send me the code for it....

              G Offline
              G Offline
              Gamzun
              wrote on last edited by
              #6

              At least give it a try! First search on google how to open up a file then google for reading it and then for inserting into db.

              Please don't forget to mark 'Good Answer', if you find it really a good one! Kashif

              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