SQL server: List out last modified procedures and functions

SQL server: List out last modified procedures and functions

 

SELECT name, create_date, modify_date,type
FROM sys.objects
WHERE type IN ('FN','V','P','U','TF')
AND DATEDIFF(D,modify_date, GETDATE()) < 6
ORDER BY modify_date

 

Here are different types used in IN clause in WHERE condition:

  • FN – Scalar valued function
  • V – View
  • P – Stored Procedure
  • U – Table
  • TF – Table valued function

AND DATEDIFF(D,modify_date, GETDATE()) < 6 – It will show the objects modified in last 6 days

About Author

Kiran Beladiya

Co-Founder

Kiran Beladiya is the co-founder of The One Technologies. He plays a key role in managing the entire project lifecycle, from discussing ideas with clients to overseeing successful releases. Deeply passionate about technology and creativity, he is also an avid writer who continues to nurture and refine his writing skills despite a demanding schedule. Through his work and writing, Kiran Beladiya shares practical insights drawn from real-world experience.

Certified By