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 6066101
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T09:27:52+00:00 2026-05-23T09:27:52+00:00

One of the tables in my db has some missing rows since the last

  • 0

One of the tables in my db has some missing rows since the last time I made a backup of db as it shows those rows in the backup db.

I am trying to view all queries that ran against that table in last 3 days (which is the time that I last made the backup)

I would appreciate any help.
Thanks.

  • 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. Editorial Team
    Editorial Team
    2026-05-23T09:27:53+00:00Added an answer on May 23, 2026 at 9:27 am

    This is why databases need audit tables which can be created to show who took the action. You also would have need to set up in advance a way to record the queries themselves (you can use Profiler but it takes a significant performance hit to do so and very few dbas will allow you to use it on a production database.) if you really wanted that but usually knowing who took the action (or which applications as we have many that hit our database) and when is all we need to trace down a data issue. If you haven’t set up for auditing in advance, it is hard to get the answer you want. Some third party log analyzer (which will be costly) might be able to recreate the data but it still wouldn’t know who did it or what the query was. And why are you doing backups only every three days?

    How do you know the rows are missing (ie they should still be there) and not correctly deleted by someone because they should not be there. Just becasue there is a data difference from three days ago doesn’t indicate a problem. If these are values that should not be changed by users, they why do they have the rights to change them? Perhaps your security model as welll as you back process needs to be re-evaluated.

    For right now you are out of luck finding how the change was made. So use that as incentive to investigate what checks and balances you need your database to have set up so that in the future you can better see what caused a data issue or prevent one from occurring. And since you have a backup with what you say are the correct values (see paragraphy 2), then fix the data.

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

Sidebar

Related Questions

I have two tables. One has some product details, the other holds various photos
I have SQL Server 2008 R2 and one of my tables has a date
I have an existing database in mysql. One of my tables has discontinuous ids.
My database has 7 tables: one is the parent (feeds) and the other 3
Is there a general term for a pairing of tables where one has header
One of my tables in my SQL database has a growth rate of two
One of the tables in my database has three columns. They are dt_id (PK),
I have a DB with many tables and one of the table has fields:
I have a database with many tables and one particular table has columns: name
Suppose I have two tables that are linked (one has a foreign key to

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.