web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :

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

Roberto Stefanetti Profile Picture Roberto Stefanetti 12,998

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.

Miodify Date

 

Examples:

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

— VIEWS

SELECT * FROM sys.all_objects WHERE type_desc like ‘VIEW’ ORDER BY modify_date DESC

— TABLES

SELECT * FROM sys.all_objects WHERE type_desc like ‘USER_TABLE’ ORDER BY modify_date DESC

— VIEWS & TABLES

SELECT * FROM sys.all_objects WHERE type_desc like ‘VIEW’ or type_desc like ‘USER_TABLE’ ORDER BY modify_date DESC

— KEYS

SELECT * FROM sys.all_objects WHERE type_desc like ‘%KEY%’ ORDER BY modify_date DESC

— COMPANY OBJECTS (ex Cronus Italy)

SELECT * FROM sys.all_objects WHERE name like ‘CRONUS%’ ORDER BY modify_date DESC

— ALL OBJECTS

SELECT * FROM sys.all_objects ORDER BY modify_date DESC

Have Fun !



This was originally posted here.

Comments

*This post is locked for comments