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. how much do you have?

how much do you have?

Scheduled Pinned Locked Moved The Lounge
databasehelpquestion
32 Posts 19 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.
  • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

    Actually some of the triggers are there to log data changes (on important tables)... Others are for data integrity... And others are for sync with externals...

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

    P Offline
    P Offline
    Pualee
    wrote on last edited by
    #10

    I'd start looking for a new job before the house of cards falls down.

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

      I found we use SQL triggers a bit too much... 336 triggers on 1450 tables... (~23%)

      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
      CodeWraith
      wrote on last edited by
      #11

      My former bosses have about 10 - 15 triggers on each and every table, some of them thousands of lines long. A nightmare. Especially after that experience: 0.0 triggers per table and not a single trigger more.

      I have lived with several Zen masters - all of them were cats.

      Kornfeld Eliyahu PeterK M S 3 Replies Last reply
      0
      • C CodeWraith

        My former bosses have about 10 - 15 triggers on each and every table, some of them thousands of lines long. A nightmare. Especially after that experience: 0.0 triggers per table and not a single trigger more.

        I have lived with several Zen masters - all of them were cats.

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

        That sounds awful... Our triggers are short (sometimes 2-3 triggers on the same event, just because they all do something else)...

        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

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

          That sounds awful... Our triggers are short (sometimes 2-3 triggers on the same event, just because they all do something else)...

          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
          CodeWraith
          wrote on last edited by
          #13

          The major part of the application logic took place in those triggers. Guess why I run out of job interviews when I hear 'Access' or ' Former Acess project that has ben ported to xxx'.

          I have lived with several Zen masters - all of them were cats.

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

            I found we use SQL triggers a bit too much... 336 triggers on 1450 tables... (~23%)

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

            abmvA Offline
            abmvA Offline
            abmv
            wrote on last edited by
            #14

            Lotta time I see...

            Caveat Emptor. "Progress doesn't come from early risers – progress is made by lazy men looking for easier ways to do things." Lazarus Long

            We are in the beginning of a mass extinction. - Greta Thunberg

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

              I found we use SQL triggers a bit too much... 336 triggers on 1450 tables... (~23%)

              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
              Dave Kreskowiak
              wrote on last edited by
              #15

              I've used 2 in my entire 32 years of doing this crap.

              System.ItDidntWorkException: Something didn't work as expected. A guide to posting questions on CodeProject

              Click this: Asking questions is a skill. Seriously, do it.
              Dave Kreskowiak

              1 Reply Last reply
              0
              • C CodeWraith

                My former bosses have about 10 - 15 triggers on each and every table, some of them thousands of lines long. A nightmare. Especially after that experience: 0.0 triggers per table and not a single trigger more.

                I have lived with several Zen masters - all of them were cats.

                M Offline
                M Offline
                megaadam
                wrote on last edited by
                #16

                Sounds like a bunch of trigger happy bosses :suss:

                ... such stuff as dreams are made on

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

                  I found we use SQL triggers a bit too much... 336 triggers on 1450 tables... (~23%)

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

                  R Offline
                  R Offline
                  R Giskard Reventlov
                  wrote on last edited by
                  #17

                  Zero. Who needs 'em, eh?

                  1 Reply Last reply
                  0
                  • abmvA abmv

                    Lotta time I see...

                    Caveat Emptor. "Progress doesn't come from early risers – progress is made by lazy men looking for easier ways to do things." Lazarus Long

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

                    Working on a review of the DB design to suggest improvements...

                    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

                    abmvA 1 Reply Last reply
                    0
                    • C CodeWraith

                      My former bosses have about 10 - 15 triggers on each and every table, some of them thousands of lines long. A nightmare. Especially after that experience: 0.0 triggers per table and not a single trigger more.

                      I have lived with several Zen masters - all of them were cats.

                      S Offline
                      S Offline
                      Slacker007
                      wrote on last edited by
                      #19

                      CodeWraith wrote:

                      My former bosses

                      Database guys in charge of application development? Sounds like it to me.

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

                        I found we use SQL triggers a bit too much... 336 triggers on 1450 tables... (~23%)

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

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

                        Zero. Though I may have written one about ten years ago. Only as a convenience for debugging. It was not vital to the system.

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

                          I found we use SQL triggers a bit too much... 336 triggers on 1450 tables... (~23%)

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

                          J Offline
                          J Offline
                          Jeremy Falcon
                          wrote on last edited by
                          #21

                          Surely that would affect performance to have that many? Most DBs I've worked on tend to not have more than a few tops.

                          Jeremy Falcon

                          1 Reply Last reply
                          0
                          • S Slacker007

                            CodeWraith wrote:

                            My former bosses

                            Database guys in charge of application development? Sounds like it to me.

                            C Offline
                            C Offline
                            CodeWraith
                            wrote on last edited by
                            #22

                            Even worse. Access guys in charge. I must have offended him when I looked at that stuff and asked him what this particular form of insanity is called.

                            I have lived with several Zen masters - all of them were cats.

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

                              I found we use SQL triggers a bit too much... 336 triggers on 1450 tables... (~23%)

                              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
                              Mycroft Holmes
                              wrote on last edited by
                              #23

                              :sigh: I hate triggers spit Development - 0 triggers UAT and Production 3 triggers on each of the master tables. I have a script that uses a configuration table to create and remove audit triggers on selected tables for each database. As we have approx 15 databases, any 3 of which will be deployed to production in any month this script is a life saver.

                              Never underestimate the power of human stupidity RAH

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

                                Working on a review of the DB design to suggest improvements...

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

                                abmvA Offline
                                abmvA Offline
                                abmv
                                wrote on last edited by
                                #24

                                all the best

                                Caveat Emptor. "Progress doesn't come from early risers – progress is made by lazy men looking for easier ways to do things." Lazarus Long

                                We are in the beginning of a mass extinction. - Greta Thunberg

                                1 Reply Last reply
                                0
                                • C CodeWraith

                                  The major part of the application logic took place in those triggers. Guess why I run out of job interviews when I hear 'Access' or ' Former Acess project that has ben ported to xxx'.

                                  I have lived with several Zen masters - all of them were cats.

                                  M Offline
                                  M Offline
                                  Mike Winiberg
                                  wrote on last edited by
                                  #25

                                  Hey! I'm (still) working on an Access project ported to SQL Server. Don't knock it if you haven't tried it! Triggers are useful, but to embed business logic? Then even I would run away... 8)

                                  C 1 Reply Last reply
                                  0
                                  • M Mike Winiberg

                                    Hey! I'm (still) working on an Access project ported to SQL Server. Don't knock it if you haven't tried it! Triggers are useful, but to embed business logic? Then even I would run away... 8)

                                    C Offline
                                    C Offline
                                    CodeWraith
                                    wrote on last edited by
                                    #26

                                    It's the 'We don't need any architecture or documentation, and you are a fool for asking.' mentality that I don't like. They can keep on doing their stuff as long as they like (or until their customers finally have enough), but I will not work like that again.

                                    I have lived with several Zen masters - all of them were cats.

                                    M 1 Reply Last reply
                                    0
                                    • C CodeWraith

                                      It's the 'We don't need any architecture or documentation, and you are a fool for asking.' mentality that I don't like. They can keep on doing their stuff as long as they like (or until their customers finally have enough), but I will not work like that again.

                                      I have lived with several Zen masters - all of them were cats.

                                      M Offline
                                      M Offline
                                      Mike Winiberg
                                      wrote on last edited by
                                      #27

                                      Oh, indeed! Fortunately this project was written originally (entirely in Access) by someone who actually had a clue, and the 'owner' who understands the business (and is also a dev) has worked on it - so I have been able to gradually document the entire setup, what things represent and do etc. Whilst it's still very much a work in progress, I've been able to add all sorts of functionality, but I've discovered nearly 60 GOTCHAs (so far!) when moving from Jet to SQL - documented hereabouts somewhere. The trickiest new feature was CRM functionality as the data had to be imported from another (commercial) system where ALL information (used in tens, if hundreds) of different views was all stored in ONE huge SQL table and extracted by the most complicated series of inner joins and table aliases that I have ever seen. The person who wrote that must have been on acid! "Normalisation - never heard of it!" Definitely write only code...

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

                                        I found we use SQL triggers a bit too much... 336 triggers on 1450 tables... (~23%)

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

                                        Z Offline
                                        Z Offline
                                        zpinklb
                                        wrote on last edited by
                                        #28

                                        17 triggers on 93 tables, but not evenly spread out so don't think percentage makes sense. Almost exclusively used to send mails so fairly harmless though. :-)

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

                                          I found we use SQL triggers a bit too much... 336 triggers on 1450 tables... (~23%)

                                          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
                                          DetroitJ
                                          wrote on last edited by
                                          #29

                                          Database has 147 tables and we have 145 triggers. It is a vendor independent change tracking mechanism that we developed so that we could make it portable.

                                          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