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

  • Home
  • SEARCH
  • 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

Ask A Question

Stats

  • Questions 112k
  • Answers 112k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Just making more of a comment than an answer here,… May 11, 2026 at 9:59 pm
  • Editorial Team
    Editorial Team added an answer See this link for PHP runtime configuration. The variable you… May 11, 2026 at 9:59 pm
  • Editorial Team
    Editorial Team added an answer UTF-8 without a doubt. Make everything UTF-8. To put UTF-8… May 11, 2026 at 9:59 pm

Related Questions

We've occasionally been getting problems whereby our long-running server processes (running on Windows Server
I have a Windows Forms application that runs locally on the user's desktop. The
I'm implementing a small application in C, which I would like to sell as
I want to provide silverlight app to my customer while hosting the app at

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.