SQL Modified Tables – AumTechHub.Com http://aumtechhub.com Just share it!!! Tue, 23 Nov 2021 01:39:31 +0000 en-US hourly 1 https://wordpress.org/?v=6.7.1 179596041 How to get list of new or modified database objects? http://aumtechhub.com/how-to-get-list-of-new-or-modified-database-objects/?utm_source=rss&utm_medium=rss&utm_campaign=how-to-get-list-of-new-or-modified-database-objects Sat, 29 Aug 2020 03:28:44 +0000 http://aumtechhub.com/?p=142 This simple query tells us if there were any database objects created within the last 24 hours. You can modify the DATEADD parameters to get a larger time span.

select * from sys.objects where create_date > dateadd(D, -1, getdate())

This second query tells us if there were any database objects modified within the last 24 hours. You can modify the DATEADD parameters to get a larger time span.

select * from sys.objects where modify_date > dateadd(D, -1, getdate())

]]>
142