- Jun 24, 2006
- 3,248
- 1
- 81
What would you do in this situation? I know enough about the sql inner workings to figure out who ran the query that caused the problem, and when, and i even have the text of the query that updated all the records.
Anyways, one of the main tables we use as part of our operation is not part of our production environment, and we aren't losing any money (this is exactly why we don't allow developers access to our production db) as a result of this mistake. I can even recover >99% of the three columns that were updated because luckily i created a backup of the table last night for some unrelated tests I was running. Our true nightly backup already overwrote the previous night's backup with the fucked up version of the table so that backup is useless. The data in this table is very usefuland we report off of it all the time.
I'm mainly pissed that this happened and the employee didn't fucking tell me he did this. If he had and this had been any other day, I wouldn't have the personal backup, but I would have been able to recover from the nightly backup. His not telling me would have fucked us over and made all the historical data basically useless.
Should I just fix it and send a message directly to him, what would I say in that case? "I noticed that all the records in the table were updated because you ran an update statement last night without a proper where condition. Please be more careful with this in the future."
Should i send a message to the team and not really single him out at all?
Probably either of the above two options would also include an office-politically-correct reprise of paragraph #3 of this post. I plan to let my boss know this happened in a private message.
Anyways, one of the main tables we use as part of our operation is not part of our production environment, and we aren't losing any money (this is exactly why we don't allow developers access to our production db) as a result of this mistake. I can even recover >99% of the three columns that were updated because luckily i created a backup of the table last night for some unrelated tests I was running. Our true nightly backup already overwrote the previous night's backup with the fucked up version of the table so that backup is useless. The data in this table is very usefuland we report off of it all the time.
I'm mainly pissed that this happened and the employee didn't fucking tell me he did this. If he had and this had been any other day, I wouldn't have the personal backup, but I would have been able to recover from the nightly backup. His not telling me would have fucked us over and made all the historical data basically useless.
Should I just fix it and send a message directly to him, what would I say in that case? "I noticed that all the records in the table were updated because you ran an update statement last night without a proper where condition. Please be more careful with this in the future."
Should i send a message to the team and not really single him out at all?
Probably either of the above two options would also include an office-politically-correct reprise of paragraph #3 of this post. I plan to let my boss know this happened in a private message.