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. When development is getting done on production SQL server....

When development is getting done on production SQL server....

Scheduled Pinned Locked Moved The Lounge
sql-serverdatabasesysadminperformancelearning
9 Posts 6 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.
  • V Offline
    V Offline
    virang_21
    wrote on last edited by
    #1

    I was looking for a reason why application that is working fine most of the time all of a sudden showing this odd timeout errors and discovered that people are actually getting on to the production SQL Server box and building SSRS and Power BI reports. PowerBI is the main culprit chewing up all the CPU ( hitting 100% ) and very large amount of memory. Only reason they don't want to do dev work somewhere else is they don't want to spend money for new server or upgrade current one with more resource. It is speced for SQL server and not for development. They are happy to pay for support while we investigate and re run same steps as application from backend but don't want to spend on upgrade. I am worried some day someone will kill that box...

    Zen and the art of software maintenance : rm -rf * Maths is like love : a simple idea but it can get complicated.

    G L M D 4 Replies Last reply
    0
    • V virang_21

      I was looking for a reason why application that is working fine most of the time all of a sudden showing this odd timeout errors and discovered that people are actually getting on to the production SQL Server box and building SSRS and Power BI reports. PowerBI is the main culprit chewing up all the CPU ( hitting 100% ) and very large amount of memory. Only reason they don't want to do dev work somewhere else is they don't want to spend money for new server or upgrade current one with more resource. It is speced for SQL server and not for development. They are happy to pay for support while we investigate and re run same steps as application from backend but don't want to spend on upgrade. I am worried some day someone will kill that box...

      Zen and the art of software maintenance : rm -rf * Maths is like love : a simple idea but it can get complicated.

      G Offline
      G Offline
      GuyThiebaut
      wrote on last edited by
      #2

      Sounds to me like the access and permissions to that production server need to be restricted to read only access and a new instance spun up for the devs. Although even that is being generous, if you restore production instance to the dev instance each night the devs should never need to go anywhere near the production server. Given your current setup, it's a given that someone is going to commit some change to production that will require a full restore. It's just a case of when.

      “That which can be asserted without evidence, can be dismissed without evidence.”

      ― Christopher Hitchens

      realJSOPR V 2 Replies Last reply
      0
      • G GuyThiebaut

        Sounds to me like the access and permissions to that production server need to be restricted to read only access and a new instance spun up for the devs. Although even that is being generous, if you restore production instance to the dev instance each night the devs should never need to go anywhere near the production server. Given your current setup, it's a given that someone is going to commit some change to production that will require a full restore. It's just a case of when.

        “That which can be asserted without evidence, can be dismissed without evidence.”

        ― Christopher Hitchens

        realJSOPR Offline
        realJSOPR Offline
        realJSOP
        wrote on last edited by
        #3

        GuyThiebaut wrote:

        if you restore production instance to the dev instance each night the devs should never need to go anywhere near the production server.

        That's a nice theory. The problem with the backup/restore idea is that you can't say "just backup the tables". You get the entire database, and that will overwrite views, functions, and stored procs that the devs may be working on. And that's assuming they're not working on tables (adding/removing columns, keys, and/or constraints). The only recourse is to be able to re-sync the code from a database source project after a restore happens, but that also has dangers because devs are forced to check-in code that possibly doesn't work, unless there's a "work" database on the server where transient procs are developed and then moved to the actual database project when they are finished.

        ".45 ACP - because shooting twice is just silly" - JSOP, 2010
        -----
        You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
        -----
        When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

        G 1 Reply Last reply
        0
        • realJSOPR realJSOP

          GuyThiebaut wrote:

          if you restore production instance to the dev instance each night the devs should never need to go anywhere near the production server.

          That's a nice theory. The problem with the backup/restore idea is that you can't say "just backup the tables". You get the entire database, and that will overwrite views, functions, and stored procs that the devs may be working on. And that's assuming they're not working on tables (adding/removing columns, keys, and/or constraints). The only recourse is to be able to re-sync the code from a database source project after a restore happens, but that also has dangers because devs are forced to check-in code that possibly doesn't work, unless there's a "work" database on the server where transient procs are developed and then moved to the actual database project when they are finished.

          ".45 ACP - because shooting twice is just silly" - JSOP, 2010
          -----
          You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
          -----
          When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

          G Offline
          G Offline
          GuyThiebaut
          wrote on last edited by
          #4

          Unfortunately it's not just a theory it's a reality of how I and all the other devs I work with develop. In terms of losing work it just means that we have to be very organised to save our work outside of the database in the form of scripts. We also have local databases which persist and are very cut-down versions with regards to data that we can work on but much of the time the data in the local databases is not sufficient for proper testing.

          “That which can be asserted without evidence, can be dismissed without evidence.”

          ― Christopher Hitchens

          1 Reply Last reply
          0
          • V virang_21

            I was looking for a reason why application that is working fine most of the time all of a sudden showing this odd timeout errors and discovered that people are actually getting on to the production SQL Server box and building SSRS and Power BI reports. PowerBI is the main culprit chewing up all the CPU ( hitting 100% ) and very large amount of memory. Only reason they don't want to do dev work somewhere else is they don't want to spend money for new server or upgrade current one with more resource. It is speced for SQL server and not for development. They are happy to pay for support while we investigate and re run same steps as application from backend but don't want to spend on upgrade. I am worried some day someone will kill that box...

            Zen and the art of software maintenance : rm -rf * Maths is like love : a simple idea but it can get complicated.

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

            virang_21 wrote:

            I am worried some day someone will kill that box...

            Raspberry Pi's can host SQL Server these days. Under $75, per user, each getting their own dedicated server. I could help, but need to be on location for that. :)

            Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^] "If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.

            1 Reply Last reply
            0
            • G GuyThiebaut

              Sounds to me like the access and permissions to that production server need to be restricted to read only access and a new instance spun up for the devs. Although even that is being generous, if you restore production instance to the dev instance each night the devs should never need to go anywhere near the production server. Given your current setup, it's a given that someone is going to commit some change to production that will require a full restore. It's just a case of when.

              “That which can be asserted without evidence, can be dismissed without evidence.”

              ― Christopher Hitchens

              V Offline
              V Offline
              virang_21
              wrote on last edited by
              #6

              Their rational for not doing it is because there is some government agency data in that application and putting that on a different server means getting few approvals from suits. I still think its worth the pain to get approval once but company thinks otherwise and gave dev direct access to that server.

              Zen and the art of software maintenance : rm -rf * Maths is like love : a simple idea but it can get complicated.

              G 1 Reply Last reply
              0
              • V virang_21

                I was looking for a reason why application that is working fine most of the time all of a sudden showing this odd timeout errors and discovered that people are actually getting on to the production SQL Server box and building SSRS and Power BI reports. PowerBI is the main culprit chewing up all the CPU ( hitting 100% ) and very large amount of memory. Only reason they don't want to do dev work somewhere else is they don't want to spend money for new server or upgrade current one with more resource. It is speced for SQL server and not for development. They are happy to pay for support while we investigate and re run same steps as application from backend but don't want to spend on upgrade. I am worried some day someone will kill that box...

                Zen and the art of software maintenance : rm -rf * Maths is like love : a simple idea but it can get complicated.

                M Offline
                M Offline
                Mycroft Holmes
                wrote on last edited by
                #7

                Why the hell do devs need real time data, oh wait this is a hardware issue, you are missing a box. No amount of tweaking, backups, schema setups is going to help you if your company is too tight to get a dev box. Prepare your I told you so email now.

                Never underestimate the power of human stupidity - RAH I'm old. I know stuff - JSOP

                1 Reply Last reply
                0
                • V virang_21

                  Their rational for not doing it is because there is some government agency data in that application and putting that on a different server means getting few approvals from suits. I still think its worth the pain to get approval once but company thinks otherwise and gave dev direct access to that server.

                  Zen and the art of software maintenance : rm -rf * Maths is like love : a simple idea but it can get complicated.

                  G Offline
                  G Offline
                  GuyThiebaut
                  wrote on last edited by
                  #8

                  So they are more concerned with the effort involved in getting approval than with the security risks of devs having access to live data :omg: ?

                  “That which can be asserted without evidence, can be dismissed without evidence.”

                  ― Christopher Hitchens

                  1 Reply Last reply
                  0
                  • V virang_21

                    I was looking for a reason why application that is working fine most of the time all of a sudden showing this odd timeout errors and discovered that people are actually getting on to the production SQL Server box and building SSRS and Power BI reports. PowerBI is the main culprit chewing up all the CPU ( hitting 100% ) and very large amount of memory. Only reason they don't want to do dev work somewhere else is they don't want to spend money for new server or upgrade current one with more resource. It is speced for SQL server and not for development. They are happy to pay for support while we investigate and re run same steps as application from backend but don't want to spend on upgrade. I am worried some day someone will kill that box...

                    Zen and the art of software maintenance : rm -rf * Maths is like love : a simple idea but it can get complicated.

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

                    Power BI excels (see what I did there?) at importing data from various sources and working off of its own copy. The people (mis)using it need to learn how to do it correctly and not hit SQL on every freakin' mouse click.

                    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