Stored Procedured modified for Last ‘N’ Days

SELECT name
FROM sys.objects
WHERE type = ‘P’
AND DATEDIFF(D,modify_date, GETDATE()) >  N    —(’ N’ means number of days do you want ie.., 6, 7  etc
  )

Stored Procedured Create for Last ‘N’ Days

SELECT name
FROM sys.objects
WHERE type = ‘P’
AND DATEDIFF(D,create_date, GETDATE()) > N

Welcome to Basavaiah’s Blog. Here you can found lots of technical articles and  more tech. information aswell.