Link to home
Start Free TrialLog in
Avatar of apollo7
apollo7Flag for United States of America

asked on

SQL query that lists the entire database by date modified

Does anyone have a SQL query that queries the entire database and lists the records by date modified?  I am looking for a count of how many records in each table was modified in 2018, 2017 and so on back to 2008.

Thanks
Avatar of Rich Weissler
Rich Weissler

Are you using Change Tracking, Change Data Capture or Versioning on your database?
ASKER CERTIFIED SOLUTION
Avatar of David Favor
David Favor
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of apollo7

ASKER

Thank everyone for the information, I have gone through about 100 tables and did a count based Modified On date.  This field is not available in every table, so I had to manually select the tables to review.

The information you all provided was enlightening so I know how this needs to be setup for future use.
Avatar of apollo7

ASKER

I have split the points to everyone that responded to my question, thanks for the assistance..