14 September 2012

Stored procedure that create in last N Days in Sql Server

Stored procedure that create in last N Days in Sql Server



SELECT name
FROM sys.objects
WHERE type = 'P'
AND DATEDIFF(D,create_date, GETDATE()) < 7
----Change 7 to any other day value.



No comments:

Post a Comment

Comments Welcome