Background to problem:
We have a problem in that for the last two weeks at the start of business on Thursday morning a single row from a Customer Master table has been missing. The first time we were confused but thought it was accidental, the second time it became more obvious that it may be a deliberate malicious act (recently departed troublesome "colleague") which in reality is only irritating but we need to stop it.
I have searched sysobjects/syscomments for all databases & linked servers but can't find any direct code in any StoredProcs (it may be hidden using a parameter ?). So I have set up an "INSTEAD OF DELETE" trigger to stop it happening / identify when it was attempted, but this won't give me the name of the Stored Procedure so I can correct or remove it.
Problem:
Is there any way of identifying (within the TRIGGER so I can add it to a log table or notifying email) which Stored Procedure has attempted the DELETE function that triggered the TRIGGER ?
It will run again sometime between 17:00 (GMT) UK time and 08:30 tomorrow morning, so although I have stopped it causing damage it would be great to completely resolve the issue which means I have to complete the coding by 17:00 UK today.
Many thanks for all attempts to help.
Paul
We have a problem in that for the last two weeks at the start of business on Thursday morning a single row from a Customer Master table has been missing. The first time we were confused but thought it was accidental, the second time it became more obvious that it may be a deliberate malicious act (recently departed troublesome "colleague") which in reality is only irritating but we need to stop it.
I have searched sysobjects/syscomments for all databases & linked servers but can't find any direct code in any StoredProcs (it may be hidden using a parameter ?). So I have set up an "INSTEAD OF DELETE" trigger to stop it happening / identify when it was attempted, but this won't give me the name of the Stored Procedure so I can correct or remove it.
Problem:
Is there any way of identifying (within the TRIGGER so I can add it to a log table or notifying email) which Stored Procedure has attempted the DELETE function that triggered the TRIGGER ?
It will run again sometime between 17:00 (GMT) UK time and 08:30 tomorrow morning, so although I have stopped it causing damage it would be great to completely resolve the issue which means I have to complete the coding by 17:00 UK today.
Many thanks for all attempts to help.
Paul