April 19, 2006 at 6:42 am
How to troubleshoot disappearances of all (2000 more) records from one
Table? Nothing shows up in TR LOG? Happens twice in a month.
Any other places to look? (MS SQL 2000 on win 2000 Server).
April 19, 2006 at 7:19 am
could you please provide some more info ?!
1) does it happen at the same times/days each month ?! is there a pattern ?!
2) any triggers on the table ?! or any others that affect this one ?!
3) what is the ddl of this table ?!
**ASCII stupid question, get a stupid ANSI !!!**
April 20, 2006 at 6:42 am
Can you create triggers on TRUNCATE and DROP on this table to insert details on the caller into some new table?
April 20, 2006 at 6:56 am
I've seen this happen because a programmer had one "Begin Tran" too many.
When the user exited the program, all her changes were rolled back instead of commited.
April 20, 2006 at 8:02 am
Maybe you have any job that is scheduled to 'clean' your table?
If it happens on a fixed time/date every month, schedule a trace for that time to see what happens.
And yes. You can create DDL triggers in SQL Server 2005. This of course implies that you have posted in the right forum because SQL Server 2000 does NOT support it.
Hanslindgren
June 29, 2006 at 3:13 am
"More Green More Oxygen !! Plant a tree today"
July 31, 2006 at 9:25 am
hi.
u can do the following to track the disappearance of records:
1. Create triggers on truncate, delete and drop events.
2. Run a trace file to capture the events.
3. Write a procedure that will update a flag whenever the count of the table gets decreased. Fire this procedure every 5 min by scheduling it in a job. Capture the results of sp_who2 command at the same time and insert them in some table to know the hostname and programname.
Viewing 7 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic. Login to reply