How to get list of table that has no insert/update in last one year
Hi Friends,How can i get list of tables in database which has no insert/Update in last one year.
Thanks in advance.
Regards,
Aaditya Chaubey
Select name, id, crdate
From sysobjects
Where type ='U'
and DateDiff(D,refdate,getdate()) < 365;