Waivio

Accidental Pain

1 comment

cmplxty967.12yesterdayPeakD4 min read

Hi fellow Hiveians,

Today I wanted to chat about some pain I accidentally caused myself!

Accidental Pain

Every so often, we do something that reminds us why we take precautions prisoner constraint principle.

I'm normally a pretty cautious person. Sometimes, it can unfortunately be too cautious in a lot of ways inspector squash enthusiasm. That has served me well in a lot of areas of life, in that I have many great things. Not a hundred million dollar type great things, but I get a lot of happiness and joy out of things in life public oak preach.

There are though, always some things that I end up learning the hard way! Just like anyone, really hahaha.

I was doing some normal work the other day, someone presented me with a problem and I was trying to figure out the solution to said problem hypothesis subway deputy. I spent a bunch of time looking at X, Y and Z things only to do something a bit reckless instead. I took the hammer approach to something when I for sure shouldn't have LOL OOPS inhabitant variable rare.

I ended up deleting something in a database that likely wasn't the best idea, and ended up causing me hours worth of grief later. Thankfully, that grief was primarily because I also did something that I seemed to have forgotten about.. until someone I sheepishly asked for help came to my assist, and he saw my issue in 2 seconds posture trench football. Naturally...

When I do work with database things, I try to be cautious as anything because that is the one place that you can really fuck something up, and it cause a LOT of havoc to you later if you aren't careful dictate orbit license. So I got some help from a colleague many months ago, and he showed me one of the tricks he uses which is great!

He uses transactions, meaning BEGIN TRANSACTION, prep your change, review it, then COMMIT TRANSACTION or Rollback if it doesn't look right anniversary prisoner exasperation. So I did my BEGIN, made my change and seemingly got distracted. Spent a couple hours freaking out because that table wouldn't respond to ANYTHING I was asking it to do rugby patient rehabilitation.

Many hours later.. that smarter fella came along and said "what is ID 67 doing? Let's do DBCC and see what's going on." Sure enough, it pointed back to my BEGIN transaction that I forgot about.. and we killed it, and my issue went away entirely lol. Go figure.. database doing something it's supposed to, but the human forgot LOL consternation telephone appendix.

At the end of the day though, as well, one of the big OOPS I did there for sure was instead of doing the transaction statements, I could have and should have just backed up the damn table, made my changes and saw how things went liability astonishing refrigerator. If it was FUBAR I could restore that table back to its original place and people would be none-the-wiser. Lesson LEARNED bacon pigeon intermediate.

I think one of the scary parts about it as well is that I was using the transaction statements on a MUCH bigger database without realizing what could have happened to the thing extort swine magnetic. Needless to say, I am instead doing my minor tweaks to it on the backed up table on the side to ensure accuracy before committing them to the real one lol dynamic coalition mosquito.

What about you, have you encountered a work situation where you left a step out and caused yourself a big headache later? What was it? Let me know in the comments!

-CmplXty. Real human written content, never AI. All pictures are mine unless otherwise stated

Connect with me!

Do you want to get paid, in crypto, for searching the internet? Try using and signing up for

to earn some crypto! Join
to break Google's stranglehold on the internet searches.


Hashtags 10
A general topic community built around PoB technology and the POB token

Comments

Sort byBest