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. Please sit down and imagine...

Please sit down and imagine...

Scheduled Pinned Locked Moved The Lounge
databasehelpquestion
32 Posts 12 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.
  • L Lost User

    Triggers aren't new in the database-world, and XML is not exactly the ideal format for an RDBMS.

    Kornfeld Eliyahu Peter wrote:

    We got a lot of it in the last 25 years...

    Yes. Doesn't mean it has to be used.

    Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^][](X-Clacks-Overhead: GNU Terry Pratchett)

    Kornfeld Eliyahu PeterK Offline
    Kornfeld Eliyahu PeterK Offline
    Kornfeld Eliyahu Peter
    wrote on last edited by
    #14

    Eddy Vluggen wrote:

    XML is not exactly the ideal format for an RDBMS

    Exactly. But it has been used - so please take a moment and move from string manipulation to faster and better options, now you have them!!!

    Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.

    "It never ceases to amaze me that a spacecraft launched in 1977 can be fixed remotely from Earth." ― Brian Cox

    L 1 Reply Last reply
    0
    • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

      And now imagine a 500+ company, managing its inventory (worth of millions), employee, customers, contact and so on, on Access... (They where located in Lod, just near enough to get infected)

      Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.

      C Offline
      C Offline
      CHill60
      wrote on last edited by
      #15

      I know of a similar company ... but because they don't have "database expertise" they re-type reports from Access into Excel to send out to clients. Yes ... I really did say "re-type"

      M 1 Reply Last reply
      0
      • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

        Eddy Vluggen wrote:

        XML is not exactly the ideal format for an RDBMS

        Exactly. But it has been used - so please take a moment and move from string manipulation to faster and better options, now you have them!!!

        Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.

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

        Kornfeld Eliyahu Peter wrote:

        so please take a moment and move from string manipulation to faster and better options, now you have them!!!

        Ehr.. databases existed before we had XML. So, the faster and better option would be - the database. ..and there will always be this bright genius who is going to store 32 flags as a bit-string, manipulating the thing with .Left$ en .Right$ until he gets his flag.

        Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^][](X-Clacks-Overhead: GNU Terry Pratchett)

        Kornfeld Eliyahu PeterK L 2 Replies Last reply
        0
        • L Lost User

          Kornfeld Eliyahu Peter wrote:

          so please take a moment and move from string manipulation to faster and better options, now you have them!!!

          Ehr.. databases existed before we had XML. So, the faster and better option would be - the database. ..and there will always be this bright genius who is going to store 32 flags as a bit-string, manipulating the thing with .Left$ en .Right$ until he gets his flag.

          Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^][](X-Clacks-Overhead: GNU Terry Pratchett)

          Kornfeld Eliyahu PeterK Offline
          Kornfeld Eliyahu PeterK Offline
          Kornfeld Eliyahu Peter
          wrote on last edited by
          #17

          Eddy Vluggen wrote:

          this bright genius

          And I got this DB from that 'bright genius' :((

          Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.

          "It never ceases to amaze me that a spacecraft launched in 1977 can be fixed remotely from Earth." ― Brian Cox

          L 1 Reply Last reply
          0
          • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

            Eddy Vluggen wrote:

            this bright genius

            And I got this DB from that 'bright genius' :((

            Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.

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

            Tools can't fix that. So, have you considered throwing it all away? :rolleyes:

            Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^][](X-Clacks-Overhead: GNU Terry Pratchett)

            1 Reply Last reply
            0
            • L Lost User

              Kornfeld Eliyahu Peter wrote:

              so please take a moment and move from string manipulation to faster and better options, now you have them!!!

              Ehr.. databases existed before we had XML. So, the faster and better option would be - the database. ..and there will always be this bright genius who is going to store 32 flags as a bit-string, manipulating the thing with .Left$ en .Right$ until he gets his flag.

              Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^][](X-Clacks-Overhead: GNU Terry Pratchett)

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

              Eddy Vluggen wrote:

              ..and there will always be this bright genius who is going to store 32 flags as a bit-string, manipulating the thing with .Left$ en .Right$ until he gets his flag.

              Most likely 16 bits (or 15 coz top bit made number -ve and messy). Also smaller numbers applied to hard disks - measured in [often single or if lucky double digit] megabytes memory was in kilobytes - everything got squeezed. 25 years ago all numbers were a lot smaller than they are today. (But the best part: no damn cell phones, once ya left the office work was really over.)

              Sin tack the any key okay

              1 Reply Last reply
              0
              • L Lost User

                No :-D I had to work with other "SQL Servers" e.g. Interbase. I'm happy now to go on with this 25 year old one from MS :laugh: [Edit] Interbase has a nice Trigger Strategy, which I'm missing in MSSQL, but that's the only thing I'm missing in MSSQL :(

                J Offline
                J Offline
                Joan M
                wrote on last edited by
                #20

                Interbase... :OMG:

                www.robotecnik.com[^] - robots, CNC and PLC programming

                L 1 Reply Last reply
                0
                • J Joan M

                  Interbase... :OMG:

                  www.robotecnik.com[^] - robots, CNC and PLC programming

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

                  Embarcadero, former borland ;P :laugh:

                  J 1 Reply Last reply
                  0
                  • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

                    And now imagine a 500+ company, managing its inventory (worth of millions), employee, customers, contact and so on, on Access... (They where located in Lod, just near enough to get infected)

                    Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.

                    D Offline
                    D Offline
                    David ONeil
                    wrote on last edited by
                    #22

                    Meh. Too new-fangly. Inventory management in Excel is all any real company ever needs! For that matter, Excel can handle ALL your data! (Don't know whether to use the Joke or Rant type for this post. I feel dirty from writing it.)

                    Sudden Sun Death Syndrome (SSDS) is a very real concern which we should be raising awareness of. 156 billion suns die every year before they're just 1 billion years old. While the military are doing their part, it simply isn't enough to make the amount of nukes needed to save those poor stars. - TWI2T3D (Reddit)

                    1 Reply Last reply
                    0
                    • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

                      ... a database, that was designed 25 years ago (SQL 6.5) and since then only upgraded, but never updated... Do you feel me?!

                      Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.

                      C Offline
                      C Offline
                      CPallini
                      wrote on last edited by
                      #23

                      Please stop whining: Twenty five years ago they did know how to design a database. :laugh:

                      P 1 Reply Last reply
                      0
                      • C CHill60

                        I know of a similar company ... but because they don't have "database expertise" they re-type reports from Access into Excel to send out to clients. Yes ... I really did say "re-type"

                        M Offline
                        M Offline
                        Mark_Wallace
                        wrote on last edited by
                        #24

                        CHill60 wrote:

                        Yes ... I really did say "re-type"

                        Well, copy & paste is hard!

                        I wanna be a eunuchs developer! Pass me a bread knife!

                        1 Reply Last reply
                        0
                        • P pt1401

                          No, me neither. How do you define upgraded vs updated? Is an update 'throw everything away and start again'? Windows was launched 35 years ago - has it been updated? Or upgraded? Or both? I don't see the difference. Semantics...

                          M Offline
                          M Offline
                          Mark_Wallace
                          wrote on last edited by
                          #25

                          pt1401 wrote:

                          Windows was launched 35 years ago - has it been updated? Or upgraded?

                          Downgraded.

                          I wanna be a eunuchs developer! Pass me a bread knife!

                          1 Reply Last reply
                          0
                          • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

                            ... a database, that was designed 25 years ago (SQL 6.5) and since then only upgraded, but never updated... Do you feel me?!

                            Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.

                            M Offline
                            M Offline
                            Mark_Wallace
                            wrote on last edited by
                            #26

                            Tables is still tables, Shirley? You might want to recook a few stored procedures, scripts, and queries, but unless the data has changed hugely and new table structures haven't been implemented well, it shouldn't be too painful.

                            I wanna be a eunuchs developer! Pass me a bread knife!

                            1 Reply Last reply
                            0
                            • C CPallini

                              Please stop whining: Twenty five years ago they did know how to design a database. :laugh:

                              P Offline
                              P Offline
                              PeejayAdams
                              wrote on last edited by
                              #27

                              Well, yes, 25 years ago there were some people who knew how to design databases, but there were an awful lot who didn't. Many people came to SQLServer or Oracle directly from ISAM systems, so it was hardly surprising that many didn't really grasp RDBMS. Have things changed since then? Maybe - I think that people are generally a bit more clued up than they used to be on this front but I can guarantee that even as I type this, somebody, somewhere is creating a "database" with mile-wide tables and not a single foreign key to be seen - and they don't have the excuse of it being new technology. People who don't know RDBMS 1.01 (the fact that the 'R' stands for "Relational") are still banging together monstrosities that will be causing pain for the poor souls who have to clean up after them for many, many years to come. Until the world comes to its senses and introduces the death penalty for denormalisation, this problem will continue.

                              Slogans aren't solutions.

                              M 1 Reply Last reply
                              0
                              • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

                                ... a database, that was designed 25 years ago (SQL 6.5) and since then only upgraded, but never updated... Do you feel me?!

                                Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.

                                M Offline
                                M Offline
                                MarkTJohnson
                                wrote on last edited by
                                #28

                                So only INSERTs and DELETEs? :laugh: :laugh:

                                1 Reply Last reply
                                0
                                • P PeejayAdams

                                  Well, yes, 25 years ago there were some people who knew how to design databases, but there were an awful lot who didn't. Many people came to SQLServer or Oracle directly from ISAM systems, so it was hardly surprising that many didn't really grasp RDBMS. Have things changed since then? Maybe - I think that people are generally a bit more clued up than they used to be on this front but I can guarantee that even as I type this, somebody, somewhere is creating a "database" with mile-wide tables and not a single foreign key to be seen - and they don't have the excuse of it being new technology. People who don't know RDBMS 1.01 (the fact that the 'R' stands for "Relational") are still banging together monstrosities that will be causing pain for the poor souls who have to clean up after them for many, many years to come. Until the world comes to its senses and introduces the death penalty for denormalisation, this problem will continue.

                                  Slogans aren't solutions.

                                  M Offline
                                  M Offline
                                  Mark_Wallace
                                  wrote on last edited by
                                  #29

                                  PeejayAdams wrote:

                                  Until the world comes to its senses and introduces the death penalty for denormalisation, this problem will continue.

                                  Denormalisation isn't necessarily a bad thing, unless you mix it up with randomly-dump-any-value-where-you-feel-like-it "methodologies". If you need a lot of derived values, for example, it can often be less costly to have them handled within the database, rather than build them into a front end, which may radically change, year over year. Denormalisation can also provide significant performance boosts, especially where joins begin to resemble spiderwebs built by drunken spiders. For me, the sole function of a db is to provide needed data as efficiently as possible. Most of the time, that means it's best if it's at least third normal, but "most of the time" isn't "always". You shouldn't close doors to effective pathways.

                                  I wanna be a eunuchs developer! Pass me a bread knife!

                                  P 1 Reply Last reply
                                  0
                                  • L Lost User

                                    Embarcadero, former borland ;P :laugh:

                                    J Offline
                                    J Offline
                                    Joan M
                                    wrote on last edited by
                                    #30

                                    I worked with it... some time... I still remember the Indiana-Jones-like-box it came into... X|

                                    www.robotecnik.com[^] - robots, CNC and PLC programming

                                    1 Reply Last reply
                                    0
                                    • M Mark_Wallace

                                      PeejayAdams wrote:

                                      Until the world comes to its senses and introduces the death penalty for denormalisation, this problem will continue.

                                      Denormalisation isn't necessarily a bad thing, unless you mix it up with randomly-dump-any-value-where-you-feel-like-it "methodologies". If you need a lot of derived values, for example, it can often be less costly to have them handled within the database, rather than build them into a front end, which may radically change, year over year. Denormalisation can also provide significant performance boosts, especially where joins begin to resemble spiderwebs built by drunken spiders. For me, the sole function of a db is to provide needed data as efficiently as possible. Most of the time, that means it's best if it's at least third normal, but "most of the time" isn't "always". You shouldn't close doors to effective pathways.

                                      I wanna be a eunuchs developer! Pass me a bread knife!

                                      P Offline
                                      P Offline
                                      PeejayAdams
                                      wrote on last edited by
                                      #31

                                      Well, yes, I agree that we need to be pragmatic and I was maybe being slightly flippant in suggesting that all forms of denormalisation, rather than most, should lead to the slow and painful death of the perpetrator :)

                                      Mark_Wallace wrote:

                                      If you need a lot of derived values, for example, it can often be less costly to have them handled within the database, rather than build them into a front end, which may radically change, year over year.

                                      I'm not saying that I would never add redundant data but I'd need a rock solid case for doing so. In my experience, redundancy pretty well always ends in tears. Maybe not today, maybe not tomorrow but somewhere down the line ...

                                      Mark_Wallace wrote:

                                      Denormalisation can also provide significant performance boosts, especially where joins begin to resemble spiderwebs built by drunken spiders.

                                      It's very rare for this to be so; the optimiser thrives on foreign keys - it is, in itself, optimised for normalised databases. If joins are becoming spidery and problematic, I'd be looking for the cause of that before I considered reducing their number by denormalising the DB.

                                      Mark_Wallace wrote:

                                      For me, the sole function of a db is to provide needed data as efficiently as possible. Most of the time, that means it's best if it's at least third normal, but "most of the time" isn't "always".You shouldn't close doors to effective pathways.

                                      I completely agree with that! My general rule of thumb is 3/4NF in most cases, 5NF if the thing has to really fly but that is, very much, a rule of thumb and rules should never be immovable.

                                      Slogans aren't solutions.

                                      1 Reply Last reply
                                      0
                                      • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

                                        ... a database, that was designed 25 years ago (SQL 6.5) and since then only upgraded, but never updated... Do you feel me?!

                                        Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.

                                        Richard DeemingR Offline
                                        Richard DeemingR Offline
                                        Richard Deeming
                                        wrote on last edited by
                                        #32

                                        Kornfeld Eliyahu Peter wrote:

                                        SQL 6.5

                                        IIRC, wasn't that the last version where every database had to have its own dedicated partition? :~


                                        "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

                                        "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

                                        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