Quantcast
Viewing all articles
Browse latest Browse all 64797

Check Objects “Modify Date” using “sys.all_objects”

If you need to check “Modify Date” for NAV Objects on SQL Server, you can use SQL Standard Function “sys.all_objects“; you don’t need to use standard NAV Objects Table.

Image may be NSFW.
Clik here to view.
Miodify Date

 

Examples:

USE[Demo Database NAV (7-1)]  GO

— VIEWS

SELECT*FROMsys.all_objects WHEREtype_desclike‘VIEW’ORDERBYmodify_dateDESC

— TABLES

SELECT*FROMsys.all_objects WHEREtype_desclike‘USER_TABLE’ORDERBYmodify_dateDESC

— VIEWS & TABLES

SELECT*FROMsys.all_objects WHEREtype_desclike‘VIEW’ortype_desclike‘USER_TABLE’ORDERBYmodify_dateDESC

— KEYS

SELECT*FROMsys.all_objects WHEREtype_desclike‘%KEY%’ORDERBYmodify_dateDESC

— COMPANY OBJECTS (ex Cronus Italy)

SELECT*FROMsys.all_objects WHEREnamelike‘CRONUS%’ORDERBYmodify_dateDESC

— ALL OBJECTS

SELECT*FROMsys.all_objects ORDERBYmodify_dateDESC

Have Fun !


Image may be NSFW.
Clik here to view.
Image may be NSFW.
Clik here to view.
Image may be NSFW.
Clik here to view.

Viewing all articles
Browse latest Browse all 64797

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>