Query to get last updated time of tables
Hi,
How to get the last updated date time of the Max DB table
Regards,
Satish
Hi,
Unfortunately, do not this this would be possible. Check this thread:
MAXDB Audit logs
Regards,
Srikishan
Similar Messages
-
SQL query to get last 10 records in the table?
Hi,
Can anyone tell me the SQL query to get last 10 records in the table?
Thanks!!
MCPPlease, define what "last" means. Sets are unordered by definition, so if you want to retrieve rows from a table in a specific order you need to specify what that order is - e.g. by maintaining a value in a column (or a combination of columns) that you can use in the ORDER BY clause of the SELECT statement.
If, for instance, you kept the time when the row was inserted in a special column (InsertedTime), you could use this in your query like this:
select top (10)
<column list>
from <table or view>
where <restriction(s)>
order by InsertedTime desc;
ML
Matija Lah, SQL Server MVP
http://milambda.blogspot.com -
Recording a last updated time for each record in a table
hi
i have a table with 5 columns. and the table has 100 rows of data.
i need to add a sixth column and this column should contain the last updated time of that particular row.
i am allowed to use triggers.
for example, if the 55th row undergoes a change, the 6th column's value for the 55th row should update itself with that particular time.
can any one of you come up with an optimized solution for this please ???
thanx a million in advance and best regards,
novice DBA
:)Hi,
Here's an example:
CREATE OR REPLACE TRIGGER table_x_biu
BEFORE INSERT OR UPDATE ON table_x
FOR EACH ROW
BEGIN
:NEW.modified_dt := SYSDATE;
END table_x_biu
SHOW ERRORSwhere table_x is your table name, and modified_dt is the DATE column to be populated.
You won't have to specify modified_dt in any INSERT or UPDATE statements. In fact, if you do, the value you give will be ignored, and the trigger will always substitute SYSDATE.
WARNING: if you do get an error message, the line number reported will usually be relative to the first DECLARE or BEGIN statement in the trigger. For example, if I had mis-spelled SYSDATE in the example above, the error message would say there was a problem in line 2, not line 5. -
Needs Query to get the cycle time automatically based on the value provided in the UDF on OWOR table
Dear all,
Need a query to get the Cycle time in hr based on the value provide in the udf on OWOR table.
Details of UDF:-
1.Start date =10/07/14 (Field Name U_EA_REST)
2.Start time =10:00 (Field Name U_EA_REASTARTTIME)
3.End date =11/07/14 (Field Name U_EA_REET)
4.End Time=14:00 (Field Name U_EA_REAENDTIME
Cycle Time=_______ (Field Name U_EA_REACYCLETIME)
Regards,
BanugopanRajendranDear all,
Need a query to get the Cycle time in hr based on the value provide in the udf on OWOR table.
Details of UDF:-
1.Start date =10/07/14 (Field Name U_EA_REST) - Date Type
2.Start time =10:00 (Field Name U_EA_REASTARTTIME) - Hour Type
3.End date =11/07/14 (Field Name U_EA_REET) - Date Type
4.End Time=14:00 (Field Name U_EA_REAENDTIME - Hour Type
Cycle Time=_______ (Field Name U_EA_REACYCLETIME) - Hour Type
Regards,
BanugopanRajendran -
Sql statement for retrieving the last update time of a table
Hello all,
Can somebody give me an example of sql statement for retrieving the last update time of an oracle table.
Thank you
IlThanks for the fast replies. It works great when I test it as a sql statement but when trying to populate a datalist with it it raises the following exception:
Exception Details: System.ArgumentException: SCN_TO_TIMESTAMP(MAX(ORA_ROWSCN is neither a DataColumn nor a DataRelation for table DefaultView
Part of the Datalist Code:
ItemTemplate>
Line 12: SCN_TO_TIMESTAMP(MAX(ORA_ROWSCN)):
Line 13: <asp:Label ID="SCN_TO_TIMESTAMP_MAX_ORA_ROWSCN__Label" runat="server" Text='<%# Eval("[SCN_TO_TIMESTAMP(MAX(ORA_ROWSCN))]") %>'>
Line 14: </asp:Label><br/>
Line 15: <br/>
{code}
Why is this happening? Any ideas?
Il -
Last Scan Time vs Last Update Time
All,
I have been using SW to track my Server 2003 boxes as MS will be EOL of these next week. In my Inventory report I include Last Scan and Last Update. As we migrate the boxes to Server 2012 - I had expected to see the 2003 Server OS drop off of the list but that is not happening.
I am getting current "Last Update" (7/13/2015) but the report still says the box has OS Server 2003 and I know it is Server 2012.
What am I missing and the bigger question is - This is for servers only. Do I have confidence that my PC inventory is reflecting the correct updates in my larger inventory?
Any advice would be appreciated.
This topic first appeared in the Spiceworks CommunityIt is my understanding that the 'discovery scan' is just for the initial scan and then there is also an update scan that just checks for differences.
I have my remote collectors to search specific subnets and scan once a week. Ever since the initial scan they all show up during in the inventory. I see most of them being 'updated' in inventory according to the schedule and the timestamp but the "Last Scan Time" never changes. As such my not scanned in 30 days just continues to build up. The "Last Updated Time" gets updated correctly but nothing else.
Is this normal behavior? It doesn't seem like it is considering the Not Scanned in 30 days group exists. It wouldn't make sense for that group to exist if there was no need for a "scan" if "updates" worked just fine.
This topic first appeared in the Spiceworks Community -
What exactly is the "last scan time" and "last update" time
There was a topic last year about this confusion. Here shows the topic and the answers that you might be looking for :)
Have a great day!
-IsaacIt is my understanding that the 'discovery scan' is just for the initial scan and then there is also an update scan that just checks for differences.
I have my remote collectors to search specific subnets and scan once a week. Ever since the initial scan they all show up during in the inventory. I see most of them being 'updated' in inventory according to the schedule and the timestamp but the "Last Scan Time" never changes. As such my not scanned in 30 days just continues to build up. The "Last Updated Time" gets updated correctly but nothing else.
Is this normal behavior? It doesn't seem like it is considering the Not Scanned in 30 days group exists. It wouldn't make sense for that group to exist if there was no need for a "scan" if "updates" worked just fine.
This topic first appeared in the Spiceworks Community -
SQL query to get last 6 months records neglect the current month
Hi All;
I need help with
sql query to get last 6 months records neglect the current month
Any help much appreciated
Thanks
Pradnya07SELECT <> FROM tbl WHERE dt >=dateadd(month,-6,GETDATE())
Best Regards,Uri Dimant SQL Server MVP,
http://sqlblog.com/blogs/uri_dimant/
MS SQL optimization: MS SQL Development and Optimization
MS SQL Consulting:
Large scale of database and data cleansing
Remote DBA Services:
Improves MS SQL Database Performance
SQL Server Integration Services:
Business Intelligence -
Hi all,
Under System > Status > Collectors Status
Status shows OK but Last Update Time is not updated. The last update time is frozen.
Anyone has a similar experience? Would someone help, please?
Regards,
NathanHi Nathan,
that seems odd indeed. would not know the cause or any sensibl explaination unless I have system details, Can you pls file an SR for this issue and upload the helpdesk file to the SR?
a helpdesk file is created under system >>maintenance>>helpdesk report
It will create a zip file that we can read in support, see the events the system is capturing, analyze your configuration. That will allow us for very quick follow up. if you want me to track it internally at Oracle pls send me the SR# in a direct mail: [email protected] -- I'm the responsible product manager for RUEI so happy to follow up on this.
R, jurgen -
Last updated time of procedure
Hi
I want to know last updated time of a procedure.
can any body tell me.
thanksselect last_ddl_time from all_objects where object_name = 'procedure_name' and object_type = 'PROCEDURE';
-
How to get the last update time for a table ?
I want to know the last change of the table data , for example, a record has been changed, how can i get that time?
Regards,
LamentHello
check the tables CDHDR & CDPOS
But the condition when u r checking the these table.for a particular field the at data element level- futhur charactestictab level we have one check box called change document it as tick
Thank u,
santhosh -
Last Access and Last Update Times for objects in Cache
Hi,
We are looking to implement Tangosol cache for our one of our critical J2EE systems and I am pretty new to it. One of the requirements is to know the following timings
-Time when an object was put in a cache X (Last update of the object)
-Time when an object was last accessed in the cache X (Last access time of an object)
Is it possible to get these values through the Tangosol J2EE API?
Thanks,
raviHi Ravi,
You can use InvocationService to access this information - an example is attached.
Regards,
Dimitri<br><br> <b> Attachment: </b><br>DumpCache.java <br> (*To use this attachment you will need to rename 529.bin to DumpCache.java after the download is complete.) -
Get last logon time,computer and username together with Powershell
I have a script which gets the last logon times of each computer in the domain.
My script:
$dcs = Get-ADComputer -Filter { OperatingSystem -NotLike '*Server*' } -Properties OperatingSystem
foreach($dc in $dcs) {
Get-ADComputer $dc.Name -Properties lastlogontimestamp |
Select-Object @{n="Computer";e={$_.Name}}, @{Name="Lastlogon"; Expression={[DateTime]::FromFileTime($_.lastLogonTimestamp)}}
==================================
Result:
Computer Lastlogon
DC1 6/06/2013 16:38:24
DC2 6/06/2013 16:30:40
=============================================I also want to get who/which account made this logon. For example:Computer Lastlogon User
DC1 6/06/2013 16:38:24 user2
DC2 6/06/2013 16:30:40 user1I also want to get who/which account made this logon. For example:Computer Lastlogon User
DC1 6/06/2013 16:38:24 user2
DC2 6/06/2013 16:30:40 user1
The last logon from aD is the last time the computer account authenticated on AD. It has nothing to do with a user.
Get-ADComputer will not return DCs. It will return all workstations.
To find the last logon for a specific computer just query the computers security log for event 529(XM-2003) or 4672 Get the newest one.
¯\_(ツ)_/¯ -
Query to get list of linked server tables referenced inside a stored procedure
Hi,
SQL Server 2005 sp4
I have a requirement to get list of linked server tables referenced insider a stored procedure
Ex:
Databases DB1 DB2
Tables: T1 T2
Use DB1
Go
Create proc P1
begin
select * from T1
select * from DB2.dbo.T2
end
I am looking for a query which can return a result with output as below. sp_depends is not helping here as it does not work for cross DB objects, any other thoughts.
Tables
T1,
DB2.dbo.T2On SQL 2005, you will have to do it manually.
On SQL 2008 or later, you could have used sys.sql_expression_dependencies.
Erland Sommarskog, SQL Server MVP, [email protected] -
I don't get last update iOS 8.3
I Don't get the last update iOS 8.3
It may not yet be available in your region. Where are you located?
Maybe you are looking for
-
No key field found for creation of DataSource - Classification Datasource
Hello, While trying to create a clasiffication datasource based on 0PLANT_ATTR, when i assign a characteristic and push the DataSource button, i get the following message: No key field found for creation of DataSource Diagnosis During generation of a
-
Cost of sales accounting in sap classical GL.
Hi Expert, we are facing problem to know the Material Cost against Sales i.e Revenue for Particular Product. kindly help through which module we will configure so that customer will come to know, while producing the finished goods this much of materi
-
Opening Balance to be displayed along with line items
Dear Experts, Is there any way to display Opening Balance for a particular GL along with LIne Items. FS10N only provides Period wise opening balance and line items. If I have to select the line items for a GL in the middle of the period and see the o
-
Preview has trouble new pdf file
I have never had problems with Preview and PDF's, but today I tried to open a PDF file I downloaded and it opens but some of the pages are not displaying right. I downloaded it again and the same thing happens. If I open it with Adobe Reader 9.0 it d
-
Filtering a table with 19699 rows
Hello I am new to Xcelsisu and I am trying to aply filter component to a table with 19699 rows. I is suppose to show in the filter 45 diferent clasifications. I seems to be using only the first 500 rows to aply the filter. I changed the maximum numbe