Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I want to get last 10 days changes in given database.
I want name of these object name, type of object (trigger,table,storedprocedure etc.) and creation date and modify date of these objects.
Posted
Updated 5-Jun-12 4:21am
v2

1 solution

SQL
SELECT name AS object_name
  ,SCHEMA_NAME(schema_id) AS schema_name
  ,type_desc
  ,create_date
  ,modify_date
FROM sys.objects
WHERE modify_date > GETDATE() - 10
ORDER BY modify_date

use this code it will surre work
 
Share this answer
 
Comments
VJ Reddy 5-Jun-12 3:39am    
Good answer. 5!
member60 29-Jun-12 5:11am    
my 5!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900