SEL createtimestamp, lastaltertimestamp FROM dbc.tables WHERE tablename LIKE '%TABLE%'
Cheers!
d3V1L
Experience is what we get, when we don't get what we want!
You might also ask the developers to add a load_date or load_timestamp field to the table which contains the required information.
In case of load_date the impact of space usage can be limited by using MVC.
If this is not an option you can ask to maintain a log table where the load process which maintains this tables is adding log infos for each run. So you could check there.
Der Beginn aller Wissenschaften ist das Erstaunen, dass die Dinge sind, wie sie sind.-Aristoteles
You mentioned in your post "dropped" and in this case it has to be created afterwards. In this scenario D3V1L solution would work.
I seems you delete and insert / select afterwards.
Ask for a log table, not for a log file.
Der Beginn aller Wissenschaften ist das Erstaunen, dass die Dinge sind, wie sie sind.-Aristoteles
Are there multiple tables you are working with or is it just one table?
-- If you are stuck at something .... consider it an opportunity to think anew.
As stated before you should ask IT that they maintain a log table wich contains information when this table was last time refreshed.
In this szenario you would query your log table to check if todays run ended successfully.
Der Beginn aller Wissenschaften ist das Erstaunen, dass die Dinge sind, wie sie sind.-Aristoteles



Tables that are dropped and reloaded daily, how can I determine if the table has been today's load, not yesterday's?