NAV Objects

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.

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 !

Annunci

1 risposta »

Rispondi

Inserisci i tuoi dati qui sotto o clicca su un'icona per effettuare l'accesso:

Logo WordPress.com

Stai commentando usando il tuo account WordPress.com. Chiudi sessione / Modifica )

Foto Twitter

Stai commentando usando il tuo account Twitter. Chiudi sessione / Modifica )

Foto di Facebook

Stai commentando usando il tuo account Facebook. Chiudi sessione / Modifica )

Google+ photo

Stai commentando usando il tuo account Google+. Chiudi sessione / Modifica )

Connessione a %s...