on 2019 Jan 03 1:02 PM
Hi How can I return the date a DB was last updated?
In MS (spit) SQL it can be done with
SELECT TOP 1 name, modify_date, type_desc FROM sy.sobjects ORDER BY modify_date DESC
I can see that SQL Anywhere has SysObjects and Type but nothing for the last date modified
This FAQ may help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
AFAIK There is no one piece of information that tell you when the database as a whole was last modified but the FAQ is saying that you could query the SYSTAB table and find the times when each of the tables were modified.
For example, extract the timestamp of the last table that was modified and that will be the time that the database was last modified.
checkpoint; select first last_modified_at from sys.systab order by last_modified_at desc;
HTH
User | Count |
---|---|
66 | |
10 | |
10 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.