Solved

SQL Server Data loss

Posted on 2008-10-16
4
426 Views
Last Modified: 2012-08-13
hi experts. I have an sql table from which data is randomly deleted.  the application that I use to insert data into this table does not have any delete command on this table. I was using sql 2000 on server 2003, but now have changed to sql 2005 on server 2003, the problem still occurs. I have put in a trigger on the table which copies the deleted row to another table and surely, deleted records are being sent to this table. What could be causing these deletions. Any ideas?
0
Comment
Question by:sigallie
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 50

Accepted Solution

by:
Vitor Montalvão earned 125 total points
ID: 22729312
In that trigger add the user and datetime for the deleted row. You might have a clue after analyze those records.
0
 
LVL 21

Assisted Solution

by:Kevin3NF
Kevin3NF earned 125 total points
ID: 22729972
Setup a server-side profiler trace with that table name in the textdata filter.  Easier to do if you can find a time when records tend to get deleted.
0

Featured Post

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

724 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question