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

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Database Update

Author  Topic 

divan
Posting Yak Master

153 Posts

Posted - 2012-10-02 : 08:03:26
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
Master Smack Fu Yak Hacker

5155 Posts

Posted - 2012-10-02 : 08:44:18
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
   

- Advertisement -