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. Extract excel from SQLDB

Extract excel from SQLDB

Scheduled Pinned Locked Moved C#
databasecss
4 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.
  • D Offline
    D Offline
    dabuskol
    wrote on last edited by
    #1

    I need to create a routine that reads all the excel files saved from sql DB. If I have 40 excel files in my DB. I need to extract all one at a time then read the content of the excel file, save it to a grid for reporting. Excel is in standard template with only 4 columns. Hope you could enlighten this. Regards Dabuskol

    Dabsukol

    L 1 Reply Last reply
    0
    • D dabuskol

      I need to create a routine that reads all the excel files saved from sql DB. If I have 40 excel files in my DB. I need to extract all one at a time then read the content of the excel file, save it to a grid for reporting. Excel is in standard template with only 4 columns. Hope you could enlighten this. Regards Dabuskol

      Dabsukol

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      dabuskol wrote:

      Hope you could enlighten this.

      Open the Excel-file (using ADO.NET, or any other library), read the content in a loop, write it to a database. Grids aren't a storage-point, they're used for displaying. What exactly do you need enlightenment with? How to read Excel, how to save it, or the complete task?

      Bastard Programmer from Hell :suss: if you can't read my code, try converting it here[^]

      D 1 Reply Last reply
      0
      • L Lost User

        dabuskol wrote:

        Hope you could enlighten this.

        Open the Excel-file (using ADO.NET, or any other library), read the content in a loop, write it to a database. Grids aren't a storage-point, they're used for displaying. What exactly do you need enlightenment with? How to read Excel, how to save it, or the complete task?

        Bastard Programmer from Hell :suss: if you can't read my code, try converting it here[^]

        D Offline
        D Offline
        dabuskol
        wrote on last edited by
        #3

        excel files are saved in a database for every record created. What I need is to read this files of every record let say 10 records per run then automatically read the content of each file to a grid for display purposes. In the end all the contect of 10 excel files is displayed in the grid for viewing. no human intervention, automatic with a single button. Regards

        Dabsukol

        L 1 Reply Last reply
        0
        • D dabuskol

          excel files are saved in a database for every record created. What I need is to read this files of every record let say 10 records per run then automatically read the content of each file to a grid for display purposes. In the end all the contect of 10 excel files is displayed in the grid for viewing. no human intervention, automatic with a single button. Regards

          Dabsukol

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          dabuskol wrote:

          What I need

          Who is saving the Excel files, what database? Sql Server? Oracle? Sqlite? Are they saved as a BLOB, or is it a real import? Do you want to "show" 10 excel-files (and their content) in a single grid? How? You'll have to formulate your question with a bit more detail to get a decent answer. And that's what we do, answer questions - that's a bit different from "providing codez". Like your question is standing now, I'm very inclined to explain how to add a button to the form.

          Bastard Programmer from Hell :suss: if you can't read my code, try converting it here[^]

          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