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. The Lounge
  3. Well this is embarrassing.

Well this is embarrassing.

Scheduled Pinned Locked Moved The Lounge
comdatabasequestionlounge
10 Posts 9 Posters 2 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.
  • OriginalGriffO Online
    OriginalGriffO Online
    OriginalGriff
    wrote on last edited by
    #1

    I have a spreadsheet which is reaching the limits of usability - for me that's about 200 rows if I'm adding them regularly, so it should be a DB app instead of a spreadsheet. So today's task was to write the DB app and import the existing data, creating the DB as I go. So I have spent the morning wrestling with bloody excel, trying to read it from OneDrive and convert it from MS's arcane interop methods to something resembling a sensible format: a DataTable is good. I mean, have you looked at it? The cell content is accessed via a property called "Value2" fer gawds sake ... And it's difficult - so after piles of googling, trying code samples and such like, I thought - "I'm sure I did this before, and used an article on CP" so I go off and google for it. And top of the list is "Reading an Excel Sheet into a DataTable, generic method". Brilliant! Let's have a look ... Oh. :sigh: I wrote it eight years ago. :-O

    "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!

    "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
    "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

    M Sander RosselS S D J 7 Replies Last reply
    0
    • OriginalGriffO OriginalGriff

      I have a spreadsheet which is reaching the limits of usability - for me that's about 200 rows if I'm adding them regularly, so it should be a DB app instead of a spreadsheet. So today's task was to write the DB app and import the existing data, creating the DB as I go. So I have spent the morning wrestling with bloody excel, trying to read it from OneDrive and convert it from MS's arcane interop methods to something resembling a sensible format: a DataTable is good. I mean, have you looked at it? The cell content is accessed via a property called "Value2" fer gawds sake ... And it's difficult - so after piles of googling, trying code samples and such like, I thought - "I'm sure I did this before, and used an article on CP" so I go off and google for it. And top of the list is "Reading an Excel Sheet into a DataTable, generic method". Brilliant! Let's have a look ... Oh. :sigh: I wrote it eight years ago. :-O

      "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!

      M Offline
      M Offline
      Marc Clifton
      wrote on last edited by
      #2

      Been there - both regarding discovering I wrote an article for something I'm searching for, and for using your article on reading Excel into a DataTable. :-D

      Latest Articles:
      Your one-stop guide for API and web-client Form, XHR, Blob, and Drag & Drop File/Data Uploading

      OriginalGriffO 1 Reply Last reply
      0
      • OriginalGriffO OriginalGriff

        I have a spreadsheet which is reaching the limits of usability - for me that's about 200 rows if I'm adding them regularly, so it should be a DB app instead of a spreadsheet. So today's task was to write the DB app and import the existing data, creating the DB as I go. So I have spent the morning wrestling with bloody excel, trying to read it from OneDrive and convert it from MS's arcane interop methods to something resembling a sensible format: a DataTable is good. I mean, have you looked at it? The cell content is accessed via a property called "Value2" fer gawds sake ... And it's difficult - so after piles of googling, trying code samples and such like, I thought - "I'm sure I did this before, and used an article on CP" so I go off and google for it. And top of the list is "Reading an Excel Sheet into a DataTable, generic method". Brilliant! Let's have a look ... Oh. :sigh: I wrote it eight years ago. :-O

        "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!

        Sander RosselS Offline
        Sander RosselS Offline
        Sander Rossel
        wrote on last edited by
        #3

        Been there done that. Here's another story about my articles though. I used to work for a company where the entire team was hired externally. Now there was this architect who was quite full of himself and kept underestimating me. Like, I asked him "why didn't we use this technology instead of the older technology we're using now?" (I think I wanted Azure Functions and we went with WebJobs). His answer was "because I didn't think you'd understand the new technology." Like WTF you :elephant:ing :elephant: :wtf: Anyway, then he and his butt kisser coworker wanted to look up some information about Functions and they used an article and then found out it was mine. Take that, :elephant: es! :D Ultimately, the coworker was laid off and the architect made sure I was too a few months later (much to the dislike of the rest of the team). The architect is still there and got a contract, I understood. I was really happy to get out of there and I'm now running my own business with some success, so it all worked out in the end :D

        Best, Sander Azure DevOps Succinctly (free eBook) Azure Serverless Succinctly (free eBook) Migrating Apps to the Cloud with Azure arrgh.js - Bringing LINQ to JavaScript

        1 Reply Last reply
        0
        • OriginalGriffO OriginalGriff

          I have a spreadsheet which is reaching the limits of usability - for me that's about 200 rows if I'm adding them regularly, so it should be a DB app instead of a spreadsheet. So today's task was to write the DB app and import the existing data, creating the DB as I go. So I have spent the morning wrestling with bloody excel, trying to read it from OneDrive and convert it from MS's arcane interop methods to something resembling a sensible format: a DataTable is good. I mean, have you looked at it? The cell content is accessed via a property called "Value2" fer gawds sake ... And it's difficult - so after piles of googling, trying code samples and such like, I thought - "I'm sure I did this before, and used an article on CP" so I go off and google for it. And top of the list is "Reading an Excel Sheet into a DataTable, generic method". Brilliant! Let's have a look ... Oh. :sigh: I wrote it eight years ago. :-O

          "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!

          S Offline
          S Offline
          Slow Eddie
          wrote on last edited by
          #4

          The memory is the first thing to go, as we age. Trust me. I know.

          What's my name again?

          1 Reply Last reply
          0
          • OriginalGriffO OriginalGriff

            I have a spreadsheet which is reaching the limits of usability - for me that's about 200 rows if I'm adding them regularly, so it should be a DB app instead of a spreadsheet. So today's task was to write the DB app and import the existing data, creating the DB as I go. So I have spent the morning wrestling with bloody excel, trying to read it from OneDrive and convert it from MS's arcane interop methods to something resembling a sensible format: a DataTable is good. I mean, have you looked at it? The cell content is accessed via a property called "Value2" fer gawds sake ... And it's difficult - so after piles of googling, trying code samples and such like, I thought - "I'm sure I did this before, and used an article on CP" so I go off and google for it. And top of the list is "Reading an Excel Sheet into a DataTable, generic method". Brilliant! Let's have a look ... Oh. :sigh: I wrote it eight years ago. :-O

            "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!

            D Offline
            D Offline
            dandy72
            wrote on last edited by
            #5

            OriginalGriff wrote:

            I wrote it eight years ago

            I find it scary that some people end up forgetting more things than others will ever learn throughout their entire lifetimes.

            1 Reply Last reply
            0
            • M Marc Clifton

              Been there - both regarding discovering I wrote an article for something I'm searching for, and for using your article on reading Excel into a DataTable. :-D

              Latest Articles:
              Your one-stop guide for API and web-client Form, XHR, Blob, and Drag & Drop File/Data Uploading

              OriginalGriffO Online
              OriginalGriffO Online
              OriginalGriff
              wrote on last edited by
              #6

              I only noticed when I tried it and it worked first time, so I went back to upvote it and found it was mine ... :-O :laugh:

              "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!

              "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
              "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

              1 Reply Last reply
              0
              • OriginalGriffO OriginalGriff

                I have a spreadsheet which is reaching the limits of usability - for me that's about 200 rows if I'm adding them regularly, so it should be a DB app instead of a spreadsheet. So today's task was to write the DB app and import the existing data, creating the DB as I go. So I have spent the morning wrestling with bloody excel, trying to read it from OneDrive and convert it from MS's arcane interop methods to something resembling a sensible format: a DataTable is good. I mean, have you looked at it? The cell content is accessed via a property called "Value2" fer gawds sake ... And it's difficult - so after piles of googling, trying code samples and such like, I thought - "I'm sure I did this before, and used an article on CP" so I go off and google for it. And top of the list is "Reading an Excel Sheet into a DataTable, generic method". Brilliant! Let's have a look ... Oh. :sigh: I wrote it eight years ago. :-O

                "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!

                J Offline
                J Offline
                JoeSox
                wrote on last edited by
                #7

                Too funny. :-D

                Later, JoeSox “Write hard and clear about what hurts.” - Ernest Hemingway Last.fm - CPForAndroid++- Earthboticsai.net

                1 Reply Last reply
                0
                • OriginalGriffO OriginalGriff

                  I have a spreadsheet which is reaching the limits of usability - for me that's about 200 rows if I'm adding them regularly, so it should be a DB app instead of a spreadsheet. So today's task was to write the DB app and import the existing data, creating the DB as I go. So I have spent the morning wrestling with bloody excel, trying to read it from OneDrive and convert it from MS's arcane interop methods to something resembling a sensible format: a DataTable is good. I mean, have you looked at it? The cell content is accessed via a property called "Value2" fer gawds sake ... And it's difficult - so after piles of googling, trying code samples and such like, I thought - "I'm sure I did this before, and used an article on CP" so I go off and google for it. And top of the list is "Reading an Excel Sheet into a DataTable, generic method". Brilliant! Let's have a look ... Oh. :sigh: I wrote it eight years ago. :-O

                  "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!

                  P Offline
                  P Offline
                  PIEBALDconsult
                  wrote on last edited by
                  #8

                  Legacy Excel (XLS) ? Or modern Excel (XLSX) ? I used to use the JET/ACE Engine with OLE DB for reading and writing Excel programmatically. XLSX is really a ZIP file containing XML files, so I open it extract the data from the XML.

                  B 1 Reply Last reply
                  0
                  • P PIEBALDconsult

                    Legacy Excel (XLS) ? Or modern Excel (XLSX) ? I used to use the JET/ACE Engine with OLE DB for reading and writing Excel programmatically. XLSX is really a ZIP file containing XML files, so I open it extract the data from the XML.

                    B Offline
                    B Offline
                    BobbyStrain
                    wrote on last edited by
                    #9

                    I am a novice. So, I import an Excel sheet into Access. Then convert it to MySql. Not much tech knowledge on my part. But I get good help from CP on many projects.

                    1 Reply Last reply
                    0
                    • OriginalGriffO OriginalGriff

                      I have a spreadsheet which is reaching the limits of usability - for me that's about 200 rows if I'm adding them regularly, so it should be a DB app instead of a spreadsheet. So today's task was to write the DB app and import the existing data, creating the DB as I go. So I have spent the morning wrestling with bloody excel, trying to read it from OneDrive and convert it from MS's arcane interop methods to something resembling a sensible format: a DataTable is good. I mean, have you looked at it? The cell content is accessed via a property called "Value2" fer gawds sake ... And it's difficult - so after piles of googling, trying code samples and such like, I thought - "I'm sure I did this before, and used an article on CP" so I go off and google for it. And top of the list is "Reading an Excel Sheet into a DataTable, generic method". Brilliant! Let's have a look ... Oh. :sigh: I wrote it eight years ago. :-O

                      "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!

                      E Offline
                      E Offline
                      ElectronProgrammer
                      wrote on last edited by
                      #10

                      I don't think that is embarrassing. A lot happens in eight years and we humans can not keep track of everything. Really embarrassing would be if you failed to follow your own instructions in front of your boss. I somehow skipped a step when reading :sigh: . After that, there is no place to hide X|

                      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