How can I know the last date I used insert trigger in SQL Server?

104 Views Asked by At

I need to get the last datetime I used a particular insert trigger only by system view etc.

Pay attention that the date modified of the table isn't correct answer for my question because it includes also table update dates.

If you think that I need to improve my question please leave comment for me

Thank you

1

There are 1 best solutions below

1
TheGameiswar On

This method is only reliable when you are in full recovery model and have log backups..

select [Begin Time],    * 
from sys.fn_dblog(null,null) where 
AllocUnitName='yourtablename'

I don't think this is captured any where unless you have Auditing enabled.