July 21, 2014 at 5:31 am
Hi,
I have an database name ABC. In this DB i have table name XYZ.
This table has the rows more than 1000, but suddenly from yesterday is was showing only 250 rows.
Can you all please suggest on this, what all the possibilities in this?
July 21, 2014 at 5:57 am
another user deleted the rows
July 21, 2014 at 6:26 am
Currently no other users are using this DB and admin access are with me only.
While checking have found that the one of the stored procedure was executed for deletion, i have got the last execution but can i found the executor for this procedure???
July 21, 2014 at 11:00 am
pratiksawant28 (7/21/2014)
Currently no other users are using this DB and admin access are with me only.While checking have found that the one of the stored procedure was executed for deletion, i have got the last execution but can i found the executor for this procedure???
Unless that proc does it's own logging, you have a server side trace running, or some other feature (CDC???) running, then no. If someone had dropped the table, it would have shown up in the default trace if no one had turned it off.
--Jeff Moden
Change is inevitable... Change for the better is not.
July 22, 2014 at 2:30 pm
You might be able to get something from the log file depending on your recovery model.
Ultimately not a lot you can do with 2000 after the fact, if you haven't set up anything to capture or audit any sort of event.
August 12, 2014 at 3:19 pm
Some use triggers in these cases to potentially record changes to important information. These do add overhead to a tables performance but they exist for a reason.
----------------------------------------------------
August 12, 2014 at 7:20 pm
...and if the target table is designed properly and the trigger is written properly, they can be nasty fast.
--Jeff Moden
Change is inevitable... Change for the better is not.
August 12, 2014 at 10:47 pm
pratiksawant28 (7/21/2014)
Hi,I have an database name ABC. In this DB i have table name XYZ.
This table has the rows more than 1000, but suddenly from yesterday is was showing only 250 rows.
Can you all please suggest on this, what all the possibilities in this?
Quick question, what version of SQL Server are you on (select @@version)?
😎
Viewing 8 posts - 1 through 7 (of 7 total)
You must be logged in to reply to this topic. Login to reply