|
|
|
|
|
by tedchs
842 days ago
|
|
I did this, around 2005, but I dropped ALL the prod tables. I was using a SQL GUI called Toad (awesome) and had separate windows open, for both "dev" and "prod". I was trying to reset the dev database, and used the wrong window. Thankfully, the "real" DBA at the time had 15-minute backups, and was able to restore it, and then I replayed a few transactions from logs. Lesson learned! > While building a feature, we performed a database migration command locally, but it incorrectly pointed to the production environment instead, which dropped all tables in production. |
|
Different color scheme on prod consoles.
Always use “BEGIN TRAN”.