Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 58085
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T17:47:34+00:00 2026-05-10T17:47:34+00:00

For my customer I occasionally do work in their live database in order to

  • 0

For my customer I occasionally do work in their live database in order to fix a problem they have created for themselves, or in order to fix bad data that my product’s bugs created. Much like Unix root access, it’s just dangerous. What lessons should I learn ahead of time?

What is the #1 thing you do to be careful about operating on live data?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T17:47:34+00:00Added an answer on May 10, 2026 at 5:47 pm

    Three things I’ve learned the hard way over the years…

    First, if you’re doing updates or deletes on live data, first write a SELECT query with the WHERE clause you’ll be using. Make sure it works. Make sure it’s correct. Then prepend the UPDATE/DELETE statement to the known working WHERE clause.

    You never want to have

    DELETE FROM Customers 

    sitting in your query analyzer waiting for you to write the WHERE clause… accidentally hit ‘execute’ and you’ve just killed your Customer table. Oops.

    Also, depending on your platform, find out how to take a quick’n’dirty backup of a table. In SQL Server 2005,

    SELECT * INTO CustomerBackup200810032034 FROM Customer 

    will copy every row from the entire Customer table into a new table called CustomerBackup200810032034, which you can then delete once you’ve done your updates and made sure everything’s OK. If the worst happens, it’s a lot easier to restore missing data from this table than to try and restore last night’s backup from disk or tape.

    Finally, be wary of cascade deletes getting rid of stuff you didn’t intend to delete – check your tables’ relationships and key constraints before modifying anything.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

A customer of ours has Quickbooks 2005 and is looking to have their web
For customer service week this year, I have the privileged task of creating a
Problem: Customer X has requested that pages using XML DataBinding and Databound tables in
I don't use Tcl in my daily work. However, I have a colleague who
I have a multi-threaded Windows application that occasionally deadlocks. Inevitably this happens on a
I have a library Eclipse project/workspace containing functionality that is occasionally delivered to a
My customer is replacing MS Office with OpenOffice in some workstations. My program export
Our customer would like to know who is online and currently using the custom
A customer's application AppName has its configuration files stored in CommonAppData. Under Windows XP
The customer wants us to log the actions that a user performs on our

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.