Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 How find out the changes happened for all objects
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Constraint Violating Yak Guru

252 Posts

Posted - 07/30/2013 :  10:23:00  Show Profile  Reply with Quote
How i can find out the changes happened in database like modifying functions,table indexes,procedures and adding or removing columns

here in this query

select * from sys.objects
where type IS NOT NULL
and modify_date between '2013-07-21' and '2013-07-29'

but here i am getting created objects list and modifying list.but if i deleted any object it is not showing can i get the all the changes happened in database between specific dates.
Suggest me !!


James K
Flowing Fount of Yak Knowledge

3873 Posts

Posted - 07/30/2013 :  10:37:26  Show Profile  Reply with Quote
Take a look at the standard schema changes report. You can access that report by right-clicking on the database name in SSMS object explorer, Reports -> Standard Reports -> Schema Change History.
Go to Top of Page

Constraint Violating Yak Guru

252 Posts

Posted - 07/31/2013 :  02:35:13  Show Profile  Reply with Quote
in query side we can do any thing we can do

SELECT object_name(object_id),
FROM sys.objects
AND modify_date BETWEEN '2013-07-15'
AND '2013-07-31'

if table modified what has been modified like that need to know..suggest me

Go to Top of Page

Very Important crosS Applying yaK Herder

52326 Posts

Posted - 07/31/2013 :  02:51:55  Show Profile  Reply with Quote
One way is to use DDL triggers which can capture the required info

SQL Server MVP
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.02 seconds. Powered By: Snitz Forums 2000