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. ASP.NET Import/Export

ASP.NET Import/Export

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netdatabasehelpquestion
2 Posts 2 Posters 1 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.
  • C Offline
    C Offline
    CLIPER
    wrote on last edited by
    #1

    Hi, I would like to have a asp.net application that will let me extract or import data automatically to my Access Database. For that, I have a .csv file and I will then upload it and will be extracted into one of the table in my Access Database. Is there any feauture that ASP.NET can easily do? Is "IO" related to this? Could anyone poiunt out any feautures that will help me do this?

    M 1 Reply Last reply
    0
    • C CLIPER

      Hi, I would like to have a asp.net application that will let me extract or import data automatically to my Access Database. For that, I have a .csv file and I will then upload it and will be extracted into one of the table in my Access Database. Is there any feauture that ASP.NET can easily do? Is "IO" related to this? Could anyone poiunt out any feautures that will help me do this?

      M Offline
      M Offline
      Mike Ellison
      wrote on last edited by
      #2

      You could always use classes in the System.IO namespace to read the .csv file as a text file, parse it yourself, and execute INSERT commands through an OleDb connection. I think you can also read the source .csv file using its own OleDb connection, with something like this for the connection string:

      "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\myCsvFile.csv;Extended Properties=Text;"

      You might want to check http://www.connectionstrings.com[^] as a good general reference on connection string construction. You might also just Google for stuff like "import csv C#" or "import csv VB.NET" - in fact, you'll come up with some CodeProject articles on the topic that way.

      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