Why is data is disappearing from my SQL Server 2005 table?
Posted on 2008-06-14
I've been writing asp code for SQL Server web applications for years and have come up with a problem that has me stumped.
In short, data in one of my tables is periodically and arbitrarily being deleted. Not ALL the data, just SOME of it. And each time it happens, it is different data. It's happening once or twice a week at inconsistent intervals as far as I can tell.
The table is quite narrow (only two fields) but also quite critical as it ties two other tables together and is really important for my client's cash flow.
I have checked the code inside and out and there are NO locations within the code from which to delete the data except one administrative module; using this module it would take DAYS (as well as admin clearance) to delete the amount of data that is regularly disappearing from this table, and those in the company with administrative clearance insist that they are not doing the deleting (there is no reason that they should!)
And yet the data continues to be deleted, and I continue having to restore an older versions of the table.
This system has over 80 tables and it's only happening to this one! It's truly bizarre!
HOW THE HECK COULD THIS BE HAPPENING? ALL IDEAS ARE WELCOME, THIS ONE HAS REALLY GOTTEN ME!