How to find the date and time of last updated table?

Answer Posted / payal nath

We can determine the last time a user table was altered
using the below query.

SELECT name, create_date, modify_date
FROM sys.tables
ORDER BY modify_date DESC

The modify_date column is updated whenever a column is
added or altered for the table.
It is also updated if the clustered index is changed.

Is This Answer Correct ?    21 Yes 15 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to name query output columns in ms sql server?

542


Explain where clause?

547


What is meant by dirty read?

564


Why are views required in the sql server or in any other database?

552


Can you explain what is indexed view? How to create it?

540






Explain the various types of concurrency problem. I.e. Lost or buried updates, uncommitted dependency, inconsistent analysis, phantom read?

507


How to add code to the existing article (using improve article)?

602


What is analysis service repository?

596


Write a SQL queries on Self Join and Inner Join.

623


What is bcnf normalization form?

677


What is report server project?

106


What are the purpose of Normalisation?

644


Explain a checkpoint?

542


What is measure group, measure? : sql server analysis services, ssas

560


What is blocking?

574