In this post, I provide you one script to find out last two day modification for Stored Procedure and Table of SQL Server.
As per security concern, this script is very useful for SQL Server DBA.
Below is a script:
FROM sys.objects AS SO
INNER JOIN sys.schemas AS SS
ON SS.schema_id = SO.schema_id
WHERE DATEDIFF(D,modify_date, GETDATE()) < 50
AND TYPE IN ('P','U')
Type P: Stored Procedure
Type U: User Tables
Note: I have filtered DATEDIFF only for last two days, as per your requirement you can change this value.
Please share your ideas and opinions about this topic with me, your contribution will add true value to this topic.
If anyone has doubts on this topic then please do let me know by leaving comments or send me an email.
If you like this post, then please share it with others.
Please follow dbrnd.com, I will share my experience towards the success of Database Research and Development Activity.
I put up a post every day, please keep reading and learning.
Discover Yourself, Happy Blogging !
Anvesh M. Patel.