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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. CSV to Database

CSV to Database

Scheduled Pinned Locked Moved C#
csharpphpdatabasemysqlcom
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.
  • G Offline
    G Offline
    gvanto
    wrote on last edited by
    #1

    Hey guys, I have a CSV file whose contents I would like to upload to an online MySQL datbases (running on a php server) using a simple C# app. I am not sure how to do this but I figured uploading the entire CSV file to the server if the first step. Is there a way of achieving this using ftp within C# somehow? Help much appreciated! Gerry C# newbie

    Meet New People - Its Free! http://www.twoggle.com

    C 1 Reply Last reply
    0
    • G gvanto

      Hey guys, I have a CSV file whose contents I would like to upload to an online MySQL datbases (running on a php server) using a simple C# app. I am not sure how to do this but I figured uploading the entire CSV file to the server if the first step. Is there a way of achieving this using ftp within C# somehow? Help much appreciated! Gerry C# newbie

      Meet New People - Its Free! http://www.twoggle.com

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Can you connect with the MySQL database directly, or do you need to FTP the file and then have code on the server to parse and insert the files ? http://www.codeproject.com/cs/internet/ftplib.asp[^] might help.

      Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

      G 1 Reply Last reply
      0
      • C Christian Graus

        Can you connect with the MySQL database directly, or do you need to FTP the file and then have code on the server to parse and insert the files ? http://www.codeproject.com/cs/internet/ftplib.asp[^] might help.

        Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

        G Offline
        G Offline
        gvanto
        wrote on last edited by
        #3

        Hi Christian, Thanks for this ftp article, I'm sure it'll do the trick (yes file has to be uploaded, then Mysql inserted by running php script on server). Many thanks! Gerry

        Meet New People - Its Free! http://www.twoggle.com

        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