{"id":83742,"date":"2019-04-03T14:56:12","date_gmt":"2019-04-03T14:56:12","guid":{"rendered":"https:\/\/www.red-gate.com\/simple-talk\/?p=83742"},"modified":"2021-04-26T16:52:50","modified_gmt":"2021-04-26T16:52:50","slug":"scary-stories-from-the-trenches","status":"publish","type":"post","link":"https:\/\/www.red-gate.com\/simple-talk\/opinion\/editorials\/scary-stories-from-the-trenches\/","title":{"rendered":"Scary Stories from the Trenches"},"content":{"rendered":"<p>If you have worked with databases long enough, you probably have many frightening stories to tell about things that have gone awry on the job or problems that were difficult to solve. Accidently dropping a table or trying to fix an issue with the CIO standing right in your cube, repeatedly asking if you\u2019ve fixed it yet, are the two that immediately come to mind.<\/p>\n<p>Grant Fritchey (<a href=\"https:\/\/twitter.com\/GFritchey\">@GFritchey<\/a>) has quite a few war stories. In one of them, he was instructed to supply a backup of the production database to a developer. The developer was working on a process to send out automated email messages to customers. Since the data was not masked in any way, emails went out to real addresses during testing. That wasn\u2019t the worst part of the story, however. Since the developer had quite a sense of humor, the messages contained, shall we say, some mature content. Luckily, Grant said he did not lose his job over this since he did exactly what he was told to do. I have a feeling that procedure changes were made quickly after that fiasco.<\/p>\n<p>Kendra Little (<a href=\"https:\/\/twitter.com\/Kendra_Little\">@Kendra_little<\/a>) has a story from many years ago when she was responsible for setting up a dev environment. Everything was scripted, but the process took two weeks due to all the database restores. One Friday evening a script had the wrong dev environment settings in it, and the dev environment ended up unusable. The dev team had to decide whether they would just not work for two weeks while the two-week process ran again or not be able to do end-to-end testing for the rest of the development cycle \u2013 a couple of months.<\/p>\n<p>These are some scary stories, but, fortunately, there are tools that can you help avoid problems like these. Even though you can automate jobs and processes with scripts, tools can be very helpful. Take <a href=\"https:\/\/www.red-gate.com\/products\/dba\/sql-clone\/\">SQL Clone<\/a>, for example. Kendra\u2019s restores would have taken just seconds instead of two weeks had SQL Clone been available. And, if the private information, including email addresses, had been masked with <a href=\"https:\/\/www.red-gate.com\/products\/dba\/data-masker\/\">Data Masker<\/a>, Grant would have avoided this embarrassing mishap.<\/p>\n<p>As humans, we are intelligent, but we also have the tendency to make mistakes. Computers are not smart (at least not yet!) but they do exactly what we tell them to do, and they can do it fast. They also don\u2019t get bored doing repetitive tasks. That\u2019s why DBAs like to automate as many of their tasks as possible. You\u2019ve probably heard the term \u201clazy DBA,\u201d but I call automation being smart and efficient. This is even more important as DBAs have more responsibilities due to new regulations and how IT is changing.\u00a0 The more that can be automated, the less mistakes are made, and the more DBAs have time for other projects. Scripting can only take DBAs so far. That\u2019s where the right tools for the job make all the difference.<\/p>\n<div class=\"spaced-bottom padded--tight scheme--lightest-grey\">\n<h4>Commentary Competition<\/h4>\n<p>Enjoyed the topic? Have a relevant anecdote? Disagree with the author? Leave your two cents on this post in the comments below, and our favourite response will win a $50 Amazon gift card. The competition closes two weeks from the date of publication, and the winner will be announced in the next Simple Talk newsletter.<\/p>\n<\/div>\n\n","protected":false},"excerpt":{"rendered":"<p>If you have worked with databases long enough, you probably have many frightening stories to tell about things that have gone awry on the job or problems that were difficult to solve. Accidently dropping a table or trying to fix an issue with the CIO standing right in your cube, repeatedly asking if you\u2019ve fixed&#8230;&hellip;<\/p>\n","protected":false},"author":110218,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[143514,47125],"tags":[68855],"coauthors":[11292],"class_list":["post-83742","post","type-post","status-publish","format-standard","hentry","category-data-privacy-and-protection","category-editorials","tag-sql-provision"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/posts\/83742","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/users\/110218"}],"replies":[{"embeddable":true,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/comments?post=83742"}],"version-history":[{"count":7,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/posts\/83742\/revisions"}],"predecessor-version":[{"id":83773,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/posts\/83742\/revisions\/83773"}],"wp:attachment":[{"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/media?parent=83742"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/categories?post=83742"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/tags?post=83742"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/coauthors?post=83742"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}