Checking when a database was last modified

Hi everyone,
I've got an sql database with a few tables in it which are tied to a web service I have running.
Thing is, when I invoke my web service (through a browser window), which is fine, the web service updates the database every time, even if the data hasn't changed (the data is football fixtures read off a different web page). This is fine from and end-user point of view, but database access is taking place even when it's not necessary.
My question is, is there a way of accessing an sql database and only updating it if it hasn't been updated within, say, the last day? How can you check for this?
Thanks!

Add a last update time to an existing table or a new table. Check it before updating it.
Of course it is a lot more efficient just to not do the updates as often.

Similar Messages

  • Where to check when the query was last used.

    Hi all,
    Where can we check the information when a particuler query was last used. (date ). Any table.
    Also how can we check the same from satistics queries.

    Hi..
    run a query and you will immediately see a new record in table RSDDSTAT (SE16) with your user-ID.
    Also check the Query statistics in Tcode ST03N.
    Cheers.

  • How can i check when my phone was last active on here? it was lost and to report a claim i need the exact date it was stolen

    ?

    it was lost and to report a claim i need the exact date it was stolen
    So was it lost or was it stolen???? When was the last time you remember having the device? Simply use that date.

  • Determine when a database was backed up without using MSDB tables?

    Hi all,
    I was wondering if there was another method to determine when a database was last backed up without using the backup history tables in msdb? whether using DBCC DBINFO, DBCC PAGE on a specific database page...etc.
    Also, when restoring a database, is there a trace flag you can use to force restore details to be written to the error log?
    John M. Couch

    The backup success message is written to the log, but the question is whether you can get restore information outside of successful restore messages to the log. i.e. backup file header information
    And on a server I just restored a database too, if its not the source server, there will be no backup information in MSDB for the database or log file. Is there something internal to the database that would have that information?
    John M. Couch
    if you restore the database -- your msdb database has restore tables, that will tell you where you got the backup from etc..
    select * from msdb.dbo.restorehistory 
    if the backup is from another server, use linked server in the msdb fr backup tables(not restore tables)
    refer https://sqlwhisper.wordpress.com/2015/01/08/database-restore-report/
    also, AFAIK,i do not think backup information is stored in the database, i would be curious know
    as well.

  • How to view when a table was last used!!?

    Hi,
    Pls let me know where I can view when a table in the database was last utilitized i.e. any selection or manipulation was performed on it.
    Thanks in Advance,
    Abhi

    Hi,
    you can see if some structure changes were done (DDL statements) through user/all/dba_objects view
    select * from user_objects where object_name = 'A1';
    ... LAST_DDL_TIME
    11/14/05 07:59:10 ...
    alter table a1 add (c2 int);
    ...LAST_DDL_TIME
    11/14/05 07:59:38 ...
    Also you can monitor access to tables (with some degree of errors) using V$ACCESS and the monitoring can be set up through v$segment_statistics.
    Andrey

  • I've synced my phone, accidentally, to my wife's account and now lost all me photos and data... Is there any way of retrieving it all? The bigger problem is I can remember when my phone was last synced to my account so the info list is not on there either

    I've synced my phone, accidentally, to my wife's account and now lost all me photos and data... Is there any way of retrieving it all? The bigger problem is I can remember when my phone was last synced to my account so the info list is not on there either

    To see if there are any backups of your device on the computer, go to iTunes/Edit/Preferences/Devices.
    Moving the mouse over the listed backups will tell you to which device they belong.
    If there is no backup of your phone listed, your data is gone.
    In case you also used iCloud to back up your data, check this article:
    iOS: Back up and restore your iOS device with iCloud or iTunes

  • How to find out when a program was last executed

    Hello,
    I have a assignment to find out when some programs where last executed in the past 2 years or so. My question to the profs here is as follows? What are the possibilities in ABAP to out when a Program (report) was last executed? Is there a function Modul that can give you when a program was last executed? OR is there a table to show you when a program was last executed?
    Thank you for your help.
    Sabina

    Hi,
    use the t.code STAT,STAD.
    Check in this link for a sample code..
    https://forums.sdn.sap.com/click.jspa?searchID=421554&messageID=1488089.
    From Table TRDIR also you get the information about Last change.
    TRDIR-UDAT ---> Changed On
    TRDIR-UNAM ---> User Name
    Regards
    Kiran Sure

  • Which folder was last modified?

    Hello,
    We copied user data to new server from the old server. There was a two servers with similar folder name. And unfortunately, we copied the data from the wrong server. Both servers are running 2008R2.
    I need to make a re-copy from correct "old" server to new server and I must tell which of these two folders was the one last used. Is Date Modified timestamp 100% accurate way to tell which folder was last modified?

    Date Modified is the accurate way to know when were the contents modified. When you modify anything inside the folder the date modified attribute of the folder gets changed. You can try this on your computer.
    One root folder on our server shows Date Modified date is 1st January, but browsing the folder reveals subfolder with a file, which has Date Modified timestamp 1st February.
    When you modify the contents within a folder, the date modified timestamp changes for that folder, however you cannot see the timestamp changed if that folder is within a parent folder. (i mean you cannot see the actual datemodified timestamp for parent
    folder).
    Prajwal Desai, http://prajwaldesai.com

  • Can i see when my phone was last accesed and used and restored.

    can i see when my phone was last accesed and used and restored.

    If you are the account owner you can log in to verizonwireless.com and check the call and text logs to see when the last activity was.  As far as seeing when it was last "restored" - that could mean several things.  Is it a smartphone?  Do you mean a factory reset? Restore from a backup?
    Is the phone not in your possession?

  • How can I display the date a word document was last modified on my web page?

    I have lists of links to word documents on my web pages. I
    want to be able to show the date the word document was last
    modified next to each link. My pages are straight html.
    Thanks.

    >but I would have to go to each individual file (I have
    hundreds) and put this code on each link.
    No, you can use the FileSystemObject to get a list of the
    files in the directory. See if you can adapt this for your site:
    <link href="/CSS/dirlist.css" rel="stylesheet"
    type="text/css">
    <%
    Function FormatSize(SizeInBytes)
    if SizeInBytes > 1024^2 then
    FormatSize = formatnumber(SizeInBytes / 1024^2,2) & "
    MB"
    elseif SizeInBytes > 1024 then
    FormatSize = formatnumber(SizeInBytes / 1024,2) & " KB"
    else
    FormatSize = SizeInBytes & " Bytes"
    end if
    end function
    %>
    <%
    dim parts
    dim part
    dim BrowseLine
    dim RelLink
    dim i
    url = Request.ServerVariables("URL")
    Parts = split(URL,"/")
    for part = 1 to ubound(Parts)-1
    ' calc link
    RelLink = ""
    for i = 1 to ubound(Parts) - part - 1
    RelLink = RelLink & "..\"
    next
    If trim(BrowseLine) <> "" then
    BrowseLine = BrowseLine & "/"
    end if
    BrowseLine = BrowseLine & "<A href=" & RelLink
    & ">" & parts(part) & "</A>"
    next
    ' add "back" link
    BrowseLine = Browseline & "  " &
    "<A href='javascript:history.back();'><img
    src='/images/return.gif' border=0></A>"
    Response.Write "<P class = 'NavTop'>" & BrowseLine
    & "</P>"
    Dim fso
    set fso = server.CreateObject("Scripting.fileSystemObject")
    dim fldr
    dim fle
    %>
    <a href="../index.asp"><img
    src="../images/leftbanner.jpg" width="343" height="70"
    border="0"></a>
    <link href="/CSS/dirlist.css" rel="stylesheet"
    type="text/css">
    </p>
    <p></p>
    <table width="85%" border="0" cellspacing="0"
    cellpadding="0">
    <tr>
    <th width="63%"><div
    align="left">   Document
    Name</div></th>
    <th width="14%">Size</th>
    <th width="23%"><div
    align="left">  Date</div></th>
    </tr>
    <%
    ' display folders
    for each fldr in
    fso.GetFolder(server.MapPath(".")).SubFolders
    %>
    <tr>
    <td class="FileName"> <a href='<%=
    fldr.Name %>'><img src="/images/folder.gif" border=0>
    <%= fldr.Name %></a></td>
    <td class="FileSize">  <%=
    FormatSize(fldr.Size) %></td>
    <td class="FileDate"><div
    align="left">  <%=
    FormatDateTime(fldr.DateLastModified,2)
    %></div></td>
    </tr>
    <%
    next
    %>
    <%
    ' display files
    for each fle in fso.GetFolder(server.MapPath(".")).Files
    dim ext
    ext = fso.GetExtensionName(fle.path)
    if (ext <> "asp") and (ext <> "scc") then
    %>
    <tr>
    <td class="FileName"> <a href='<%=
    escape(fle.Name) %>'><img src="/images/file.gif"
    width="14" height="16" border=0>
    <%= fle.Name %></a></td>
    <td class="FileSize">  <%=
    FormatSize(fle.Size) %></td>
    <td class="FileDate"><div
    align="left">  <%=
    FormatDateTime(fle.DateLastModified,2) %></div></td>
    </tr>
    <%
    end if
    next
    Set fso = Nothing
    Set fle = Nothing
    Set fldr = Nothing
    %>
    </table>
    <p><a href="/index.asp">Return to Home
    Page</a></p>

  • Need a Tool to Display When a Program Was Last Used

    Is there an SAP tool that tells when a program was last ran? I need to terminate some custom programs but unsure of which programs are not being used. Is there anything in SAP that I can use to tell me when a program was last used i.e., 6 months ago, 1 year or 2 years ago or perhaps more?
    Thanks in advance and Happy New Year!

    Hi Beth,
    Information like this is as good as the logging configured in your system. If your basis team is good at keeping logs for a long time, then you should be able to get this information using SM20 transaction.
    If they didn't keep the logs(since they are voluminous, they periodically delete them), then you have no trace of them). Work with your basis team, they may know more transactions.
    Another option is to pick the programs that you think are obsolete, remove access to execute them from all the users and if no one comes back, you may delete it. But this means you may even have to wait for one year, as there may reports that are run only on year-end.
    There is no straight forward way of knowing this information unless you have the basis help.
    Please let me know if it helped.
    Regards,
    Srinivas

  • How to find out when a table was last updated?

    Is there a way to find out when a table was last updated/inserted/deleted? Thanks!

    There may be an easier way but if you are trying to get info on something that has already happened look at your redo logs and archived logs. It would be hard but in V$LOGMNR_CONTENTS you could find the max time for a given object. Note to use this you need to set up log miner. Since you did not give a version try the Oracle 9i DBA Guide pg 9-1.

  • Can I look at when my iPhone was last backed up on iCloud on my iPad?

    My phone is being stupid from me updating my iphone to the 7.1.2 update. So I'm planning on taking it somewhere to get it fixed but just in case, I want to know when my iphone was last backed up on iCloud. Is there any way I could do that from my ipad?
    Thank you,
    Kate

    If your iPad is signed into the same iCloud account, go to Settings>iCloud>Storage & Backup>Manage Storage, tap the name of your iPhone under Backups and look at the Latest Backup date (time).

  • Is there a way of knowing when an app was last opened on my iPad?

    Hello
    I'm using an iPad Air with iOS 8.3. Is there a way of finding out when a particular app was last used and for how long?
    Thanks for any help.
    Dave

    Thanks KP, that's a shame - do you, or anyone else, know of an app that can monitor these things? Basically, I want to be able to see which apps my children have used (games mostly) and when they've used them. I'm sure I can't be the only one!
    Cheers
    Dave

  • Is there a way to see when a plugin was last used so it could be determined if that plugin could no longer be needed?

    is there a way to tell if a plugin is no longer needed. In other words is there a way to tell when it was last used to determine if it should be deleted. for instance iphoto6,

    the 4-5th digits of the serial number indicate week of production
    ie 82327 = week 27 of the year.

Maybe you are looking for