SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Database Update
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

divan
Posting Yak Master

153 Posts

Posted - 10/02/2012 :  08:03:26  Show Profile  Reply with Quote
It there some kind of command or script that will let us know the last time a sql DB was updated, and to even go one step further to see which tables in the db were updated..

sunitabeck
Flowing Fount of Yak Knowledge

5155 Posts

Posted - 10/02/2012 :  08:44:18  Show Profile  Reply with Quote
If you are referring to changes in the data - inserts, updates, deletes etc., I don't know of anything that is turned on by default that will give you a history of such changes. If you are on SQL 2008 or later, you can set up Change Data Capture to do this, but you have to set it up in order to use it. http://msdn.microsoft.com/en-us/library/bb522489(v=sql.105).aspx

If you were referring to schema changes, you can right click on the database name in the object explorer in SSMS, Reports->Standard Reports -> Schema Change History.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New 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.06 seconds. Powered By: Snitz Forums 2000