r/SQL • • Nov 01 '19

Stuff of nightmares!

Post image
342 Upvotes

22 comments sorted by

37

u/[deleted] Nov 01 '19

One time, in my first real job... you know how sometimes SSMS locks up when you right click? Well, I had right clicked and then left clicked at the same time. When things unfroze it unfolded that I had dropped a database.

The DBAs were furious with me and called a meeting with my direct manager, and their manager (a VP) to try to revoke my access. They started the meeting by talking about a variety of things, all of which made me look horrible, and then I calmly asked them why I had the ability to drop the database in the first place, and why they were so incompetent. Two questions, then silence.

The VP looked at me, looked at them, and said, "So why did he have access to drop the database like that?"

End of meeting.

8

u/pukatm Nov 01 '19

nice save! it's good to be assertive. are you still working there?

11

u/[deleted] Nov 01 '19

God no. They eventually fired me for behavioral issues, which was true, but it was a result of them persistently lying to me. It worked out great though, I got a much needed break and before I was even starting to look for a job someone called me up and offered me a 30% raise, plus a title bump, plus it was for a larger company.

2

u/pukatm Nov 01 '19

Great news! Happy to hear it worked out and you got out of such a place.

4

u/[deleted] Nov 01 '19

They had continually dangled a promotion in front of me, but when I finally got in front of the CMO they acted like it was the first time they had heard about it, and outlined a number of things I would need to start doing in order to qualify for that promotion --> all of which I had already been doing.

When they eventually fired me it was for very laughable reasons, and before I left I had let several other C suite executives know what was going on.

It worked out well for me, but now I'm in a situation where I have a colleague who is in a similar position, and I can see him floundering, but he doesn't understand how to navigate the world. Meanwhile I'm doing great and in line for both a promotion and a raise after only being with the company about 4 months. I've quickly become thee SME.

The irony is that this other guy knows more than I do, and I defer to him. But he is held in very low regard, mainly because of behavioral issues.

1

u/MGUESTOFHONOR Nov 01 '19

What are behavioral issues in this sense?

2

u/[deleted] Nov 01 '19

Openly telling your management that you're looking for a new job, and explaining to them how fucked they are when you leave because there isn't anyone to inherit any of your responsibilities.

Fun fact: After they fired me, they learned exactly how serious that statement was, meanwhile I was sleeping 14 hours a day on a beach. I seriously just took a few months off.

1

u/Remote_Cantaloupe Nov 01 '19

Did they at least have daily backup instances?

2

u/[deleted] Nov 01 '19

They did. It was restored within 20 minutes and it was an OLAP so there wasn't any downstream impact.

16

u/[deleted] Nov 01 '19

dont cowboy shit in production

6

u/got-trunks Nov 01 '19

delete from * where ....

13

u/mac-0 Nov 01 '19 edited Nov 01 '19

delete from table --where 1=2

3

u/famousxrobot Nov 01 '19

I once did this because I had a line break between my delete from and where... something was wrong with my where line, but SSMS was like “it’s all good up to this line, so let’s go!”

10

u/Fortinbraz Nov 01 '19

This is a repost bot that copies one of the top 20 posts in a random sub every 10 minutes.

This post is currently #3 and was originally posted by /u/B33rG33k 7 months ago.

5

u/wonder-maker Nov 01 '19

Don't even have to delete it, just fat finger an entry and lock a table and watch the fun begin

4

u/aikijo Nov 01 '19

Begin transaction

— won’t work with a drop statement

1

u/[deleted] Nov 01 '19

Is this true??

5

u/Nk4512 Nov 01 '19

production is the best place to play. Ask facebook

2

u/CutPasteIsSuperior Nov 01 '19

Intellisense, coupled with DROP TABLE IF EXISTS is an absolute nightmare. I hope to god you don't relate with what I am saying.

1

u/[deleted] Nov 01 '19
  1. Staging deployment structure and data copy from production.

  2. Humans get read perms.

  3. All production changes occur via version controlled, tested automation scripts.

  4. Profit.

1

u/kyleiscoding Nov 01 '19

Hahhahah I'm dead!

1

u/AllReligionsAreTrue Nov 01 '19

That's good for starters, but easy to fix.

Try checking in code that compiles, but has a hard to spot bug, like changing a one to an lower-case L.