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. "Dumb" question for all the DBAs...

"Dumb" question for all the DBAs...

Scheduled Pinned Locked Moved The Lounge
32 Posts 18 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.
  • S SledgeHammer01

    Dumb question... if you are a DBA and I came up to you and said "Here's a physical beastly box... 24 cores, ~140GB of RAM, plenty of flash storage... I need you to set up SQL 2016 on it and migrate this 10TB database from SQL 2008 R2" Assuming of course proper security and best practices, etc. Let's even "complicate" it and assume this 10TB database includes spatial data. How long would it take you? I have ZERO SQL admin experience other then slamming a few SQLs onto local machines or VMs and I think I could realistically get it setup and running in a day or two with plenty of breathing room. Yet, our supposedly experienced DBAs claim its going to take them 3 months!!! LOL... Unbelievable.

    L Offline
    L Offline
    LeMike
    wrote on last edited by
    #19

    To actually do a move, probably a day or so to get the new environment (machine, memory, etc.) set up and tested. Give a day to actually copy the data over. Minimally a day or two to write, prove, and run code to demonstrate to management that the data did, in fact, make it over intact (although that can then be used for other moves, so don't lose it). Going out on the proverbial limb here ... a week?

    1 Reply Last reply
    0
    • S SledgeHammer01

      Dumb question... if you are a DBA and I came up to you and said "Here's a physical beastly box... 24 cores, ~140GB of RAM, plenty of flash storage... I need you to set up SQL 2016 on it and migrate this 10TB database from SQL 2008 R2" Assuming of course proper security and best practices, etc. Let's even "complicate" it and assume this 10TB database includes spatial data. How long would it take you? I have ZERO SQL admin experience other then slamming a few SQLs onto local machines or VMs and I think I could realistically get it setup and running in a day or two with plenty of breathing room. Yet, our supposedly experienced DBAs claim its going to take them 3 months!!! LOL... Unbelievable.

      M Offline
      M Offline
      maze3
      wrote on last edited by
      #20

      day 1: get sql 2016, install. oh which version did you want? day 1-5: figure out licensing model. day 5: ok, i think i know which licenses we need. let me raise purchase request with accounting. day 10: oh, no we need a License advisor to come in and assess. day 30: license advisors came yesterday. now i can raise purchase. day 56: purchase approved day 60: acquired licenses. now can install. day 61: oh, we need that feature that was in enterprise edition. Ok, i will just install, oh, need different licenses. day 62: seek payment reimbursement from License Advisor for poor decision. day 90: all license correct. install, upgrade database. done you getting core or user license for that machine? and if core, damn, which my company that easy with money. What over $100k.

      1 Reply Last reply
      0
      • S SledgeHammer01

        We have 2 SQL devs that write the SPs. One of them is fairly OK, but tbh, I think his skills are antiquated and he has no interest in learning new stuff. He only knows Microsoft SQL and tends to develop SPs using tons of temp tables and tends to "work around" issues rather then fix them. The other dev is awful. Us devs suspect he is a former C/C++ developer who picked up a "SQL for dummies" book one weekend and decided to become a SQL developer. Just due to the way he writes SQL code. The first project they gave him, he released an SP that took 30 minutes to run!!! He actually released it like that. They've restructured everything many times over and have got it down to 5 to 10 seconds now which still doesn't meet the requirements LOL. 30 minutes to 5 to 10 seconds is a huge improvement obviously, but it just shows how bad the SQL is at my company.

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

        I feel your pain. I've recently started working on a side project of analyzing our company's database cluster for performance issues. Given this task, the company has no tools to do any kind of DB analysis , so I'm also evaluating tools to do that. During my initial analysis run, I've found that a majority of the problems are coming from bad SQL. Over half are coming from third party products the company has purchased for accounting and so forth. Fixing in-house SQL is one thing, but to get a third party company to fix their cra... um, stuff is a PITA.

        D 1 Reply Last reply
        0
        • S SledgeHammer01

          Yup. My favorite dev story is that at one company I worked at, there was a change control board. You weren't allowed to touch code without their approval, so basically: *user or QA reports bug *bug goes to CCB *CCB reviews bug and decides if its worth doing anything about it *assuming CCB approved bug, it gets sent to dev group router *router routes it to proper mgr *assuming router got it right (1/2 the time they didn't) the mgr distributed it to developer for RESEARCH ONLY *there was no ownership of code, so a bug might get routed to a person who has never touched, looked at or even heard of that component *developer would research it, it usually took quite a while to research it, because you had to track down the original developer and ask them all sorts of questions to get up to speed *developer would report back the finding to the CCB *CCB would either approve, deny or request more info *if they want more info, rinse/repeat *only after approval could you fix it -- problem was, you general got approval MONTHS after you researched it, so you completely forgot everything about it -- no point in shelving the changes or anything, since they literally had thousands of branches, and you'd never be able to find your branch. So anyways, due to all the red tape, it actually took me 6 months just to change a bool from true to false :).

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

          Joe, is that you? I didn't know the Change Control Board ever let people out of their dungeon! Or did you dig your way out with a coffee cup and a USB key, again?

          vuolsi così colà dove si puote ciò che si vuole, e più non dimandare --The answer to Minos and any question of "Why are we doing it this way?"

          1 Reply Last reply
          0
          • S SledgeHammer01

            Dumb question... if you are a DBA and I came up to you and said "Here's a physical beastly box... 24 cores, ~140GB of RAM, plenty of flash storage... I need you to set up SQL 2016 on it and migrate this 10TB database from SQL 2008 R2" Assuming of course proper security and best practices, etc. Let's even "complicate" it and assume this 10TB database includes spatial data. How long would it take you? I have ZERO SQL admin experience other then slamming a few SQLs onto local machines or VMs and I think I could realistically get it setup and running in a day or two with plenty of breathing room. Yet, our supposedly experienced DBAs claim its going to take them 3 months!!! LOL... Unbelievable.

            K Offline
            K Offline
            Kirk 10389821
            wrote on last edited by
            #23

            I have 2 answers. Either build it yourself, or outsource it. Now, if this was Oracle. I would say he is insane. You could restore that in oracle pretty easily and copy the config settings over pretty quickly. (restoring 10TB of data will take a while). With that said, it always depends. Is it one schema or 200? Do they all talk to each other. When they are done, do they have to sync the stored procedures from a repository? Is it all data or data and code? You have to cut them a little slack. 3 months seems long. Too long. Okay, way too long. I would agree with Days. I might give them a week. But I would certainly consider hiring an outside resource to come in and do it, and also AUDIT your DB guys for best practices. I find a good Audit shakes things up a bit, and puts people on notice. It also brings in a second pair of eyes which can be very helpful, and management gets around the competing groups complaining. Hard to defend the DB guys when the outside guys say they suck! I have done a few IT audits and it is always scary what you find. The great thing is that SOME stuff gets fixed while you are there (like default passwords on wireless routers, OMG). BTW, it looks like you are throwing hardware at your performance problems. Usually a good sign of a design flaw.

            1 Reply Last reply
            0
            • S SledgeHammer01

              Dumb question... if you are a DBA and I came up to you and said "Here's a physical beastly box... 24 cores, ~140GB of RAM, plenty of flash storage... I need you to set up SQL 2016 on it and migrate this 10TB database from SQL 2008 R2" Assuming of course proper security and best practices, etc. Let's even "complicate" it and assume this 10TB database includes spatial data. How long would it take you? I have ZERO SQL admin experience other then slamming a few SQLs onto local machines or VMs and I think I could realistically get it setup and running in a day or two with plenty of breathing room. Yet, our supposedly experienced DBAs claim its going to take them 3 months!!! LOL... Unbelievable.

              C Offline
              C Offline
              Chris Maunder
              wrote on last edited by
              #24

              If the install was clean and easy - an hour or so If the DB files could simply be detached, XCOPY'd, and reattached, and if the data could be copied over gigabit ethernet or USB3 or something fast then it's probably a day just to copy the data over, and anything from 5 mins to hours depending on how many physical database files you had. If you were doing a straight upgrade, all security settings were the same (and scripted to allow easy setting up) then add another half hour of faffing around to get that setup (depending on how many databases) But no. Not three months. Unless that's "2 months and 28 days waiting in our TODO queue because we have a ton on our plate, and 2 days to get it done".

              cheers Chris Maunder

              1 Reply Last reply
              0
              • S SledgeHammer01

                Dumb question... if you are a DBA and I came up to you and said "Here's a physical beastly box... 24 cores, ~140GB of RAM, plenty of flash storage... I need you to set up SQL 2016 on it and migrate this 10TB database from SQL 2008 R2" Assuming of course proper security and best practices, etc. Let's even "complicate" it and assume this 10TB database includes spatial data. How long would it take you? I have ZERO SQL admin experience other then slamming a few SQLs onto local machines or VMs and I think I could realistically get it setup and running in a day or two with plenty of breathing room. Yet, our supposedly experienced DBAs claim its going to take them 3 months!!! LOL... Unbelievable.

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

                They have to "verify" your current schema. I'm betting on 6 months.

                S 1 Reply Last reply
                0
                • L Lost User

                  They have to "verify" your current schema. I'm betting on 6 months.

                  S Offline
                  S Offline
                  SledgeHammer01
                  wrote on last edited by
                  #26

                  Yup. That's what they say. That they want to verify everything. These are the same people that write stored procs with spaces in the column names, # signs, etc. We once spent a day tracking down a crash because the SQL dev "accidently" put a trailing space in the column name "ColumnName ". He swore up and down that he didn't change any column names and dev swore up and down that he did. Like I said before, I'm not a SQL expert and database doesn't interest me that much in general, so I'm not up on all the latest & greatest best practices, but I still know you shouldn't put spaces in column names, keep everything consistent, etc. Not have 11 copies of the same data copied all over the place, etc.

                  L 1 Reply Last reply
                  0
                  • L Lost User

                    I feel your pain. I've recently started working on a side project of analyzing our company's database cluster for performance issues. Given this task, the company has no tools to do any kind of DB analysis , so I'm also evaluating tools to do that. During my initial analysis run, I've found that a majority of the problems are coming from bad SQL. Over half are coming from third party products the company has purchased for accounting and so forth. Fixing in-house SQL is one thing, but to get a third party company to fix their cra... um, stuff is a PITA.

                    D Offline
                    D Offline
                    DavidAPorter
                    wrote on last edited by
                    #27

                    It is especially trying when the third party insists that their immaculately-conceived SQL is free from original sin and it must be your loathsome environment which is responsible...

                    L 1 Reply Last reply
                    0
                    • D DavidAPorter

                      It is especially trying when the third party insists that their immaculately-conceived SQL is free from original sin and it must be your loathsome environment which is responsible...

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

                      Yup, ran into that last week. I'm having to "build" a case showing how terrible their SQL is, like I was in a court of law. Metrics don't lie especially when they show that the SQL is running for 15 hours at a time. Also, where do they get off writing a SQL statement that starts off Select Top 1 count(*) From ... Good grief! :doh:

                      1 Reply Last reply
                      0
                      • S SledgeHammer01

                        Dumb question... if you are a DBA and I came up to you and said "Here's a physical beastly box... 24 cores, ~140GB of RAM, plenty of flash storage... I need you to set up SQL 2016 on it and migrate this 10TB database from SQL 2008 R2" Assuming of course proper security and best practices, etc. Let's even "complicate" it and assume this 10TB database includes spatial data. How long would it take you? I have ZERO SQL admin experience other then slamming a few SQLs onto local machines or VMs and I think I could realistically get it setup and running in a day or two with plenty of breathing room. Yet, our supposedly experienced DBAs claim its going to take them 3 months!!! LOL... Unbelievable.

                        R Offline
                        R Offline
                        RobEpworth
                        wrote on last edited by
                        #29

                        LOL, Spoken as someone who sees it as a simple badge swap. While 2016 is new you can't NEED it - It offers new features that you may want to use, but it also stops functionality that currently exists (deprecated & discontinued features - some real gotcha's moving 2008R2 to 2016.) You also trivialise (or rather don't mention at all) the organisational significance of the database. It this a production system running 24x7 @ 999999. Any DBA can update the "SERVER" in ~30min (with outages), this doesn't mean the database(s) will work on the other side, or that all the attached applications will be able to reconnect and use them. So much has been glossed over with the vision of a new toy to play with...

                        S 1 Reply Last reply
                        0
                        • R RobEpworth

                          LOL, Spoken as someone who sees it as a simple badge swap. While 2016 is new you can't NEED it - It offers new features that you may want to use, but it also stops functionality that currently exists (deprecated & discontinued features - some real gotcha's moving 2008R2 to 2016.) You also trivialise (or rather don't mention at all) the organisational significance of the database. It this a production system running 24x7 @ 999999. Any DBA can update the "SERVER" in ~30min (with outages), this doesn't mean the database(s) will work on the other side, or that all the attached applications will be able to reconnect and use them. So much has been glossed over with the vision of a new toy to play with...

                          S Offline
                          S Offline
                          SledgeHammer01
                          wrote on last edited by
                          #30

                          Actually, it does have a killer feature for us: native spatial processing. That will cut our processing times by a huge amount.

                          1 Reply Last reply
                          0
                          • S SledgeHammer01

                            Yup. That's what they say. That they want to verify everything. These are the same people that write stored procs with spaces in the column names, # signs, etc. We once spent a day tracking down a crash because the SQL dev "accidently" put a trailing space in the column name "ColumnName ". He swore up and down that he didn't change any column names and dev swore up and down that he did. Like I said before, I'm not a SQL expert and database doesn't interest me that much in general, so I'm not up on all the latest & greatest best practices, but I still know you shouldn't put spaces in column names, keep everything consistent, etc. Not have 11 copies of the same data copied all over the place, etc.

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

                            It used to be harder in the past, but it's rather easy to "parallel" the "thinkers" in DBA and QA with Express and Trial Versions of most anything; so when they do finally say "OK ... Do it your way!" (due to some pressure from "above"), you've already been up and running.

                            1 Reply Last reply
                            0
                            • S SledgeHammer01

                              Dumb question... if you are a DBA and I came up to you and said "Here's a physical beastly box... 24 cores, ~140GB of RAM, plenty of flash storage... I need you to set up SQL 2016 on it and migrate this 10TB database from SQL 2008 R2" Assuming of course proper security and best practices, etc. Let's even "complicate" it and assume this 10TB database includes spatial data. How long would it take you? I have ZERO SQL admin experience other then slamming a few SQLs onto local machines or VMs and I think I could realistically get it setup and running in a day or two with plenty of breathing room. Yet, our supposedly experienced DBAs claim its going to take them 3 months!!! LOL... Unbelievable.

                              W Offline
                              W Offline
                              Wynter Dragon
                              wrote on last edited by
                              #32

                              I know I am late to the party, but my first question to these requests is always "What are you REALLY trying to do?". Most people come at you with a problem to their solution instead of asking you for a solution to their problem. Once I sit someone down and have them tell me exactly what their problem is there is always a much simpler path to take instead of the putting the square peg in the round hole. In this situation you are describing I would be asking them what are you going to use this for? Are you expecting a handful of engineers on the enterprise hitting it? Or are you going for a web facing portal audience. How you plan to implement a SQL database really starts there.

                              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