Reputation: 6897
After avoid disasters for a few years, my luck finally ran out.
I had a few query windows open (one of them on our production server which I forgot about). Thinking I was on our dev server, I did all sorts of nasties and totally hosed our production database.
Any BKM's on how you folks keep this from happening?
All advice appreciated!
Upvotes: 3
Views: 363
Reputation: 17161
View
menu make sure that Registered Servers is visible (alternatively hit CTRL
+ALT
+G
Next time you open a query on this connection the status bar at the footer should show the colour you selected.
IMPORTANT: If you change the connection of a query window (option in the right-click context menu) the colour of the status bar does not change. Just be careful out there!
Upvotes: 4
Reputation: 2935
Specially for such case I have added "Important DB Alert" function into my SSMS add-in called SSMSBoost. You can "save" your production and development databases and assign them different colors. Whenever you change your connection to "Important DB" you will be warned with additional tooltip, appearing in SQL Editor window. The feature is described here: http://www.ssmsboost.com/Features/ssms-add-in-preferred-connections
Upvotes: 1