数据库中表被哪些东东所操作过的记录

数据库中表被哪些东东所操作过的记录:
SELECT sm.object_idOBJECT_NAME(sm.object_idAS object_name
        o.type, 
        o.type_desc, 
        sm.definition
FROM sys.sql_modules AS sm
JOIN sys.objects AS o ON sm.object_id = o.object_id
where definition like '%表名%'
ORDER BY o.type;
GO
原文地址:https://www.cnblogs.com/bober/p/2698158.html