Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. update date and time in asp.net

update date and time in asp.net

Scheduled Pinned Locked Moved ASP.NET
databasecsharpasp-netsql-serversysadmin
4 Posts 4 Posters 2 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Ahamed Azeem
    wrote on last edited by
    #1

    Hi guys, I want to display date and time if I update my website in server(if i insert/update a row in particualar tables) . How to do it in asp.net with sql server database

    Ahamed Azeem software Programmer

    R D R 3 Replies Last reply
    0
    • A Ahamed Azeem

      Hi guys, I want to display date and time if I update my website in server(if i insert/update a row in particualar tables) . How to do it in asp.net with sql server database

      Ahamed Azeem software Programmer

      R Offline
      R Offline
      raju melveetilpurayil
      wrote on last edited by
      #2

      Ahamed Azeem wrote:

      I want to display date and time if I update my website in server(if i insert/update a row in particualar tables) . How to do it in asp.net with sql server database

      better to create a Log table. and display last update from Log Table.

      1 Reply Last reply
      0
      • A Ahamed Azeem

        Hi guys, I want to display date and time if I update my website in server(if i insert/update a row in particualar tables) . How to do it in asp.net with sql server database

        Ahamed Azeem software Programmer

        D Offline
        D Offline
        David Mujica
        wrote on last edited by
        #3

        If you add a "Modifydate" column to your table, then each time you update a row in the table, set the ModifyDate to the CurrentDate-Time. You can then issue a select max(ModifyDate) on that table to display the latest update date on your web page.

        1 Reply Last reply
        0
        • A Ahamed Azeem

          Hi guys, I want to display date and time if I update my website in server(if i insert/update a row in particualar tables) . How to do it in asp.net with sql server database

          Ahamed Azeem software Programmer

          R Offline
          R Offline
          Rajendra Prasad Panchati
          wrote on last edited by
          #4

          Hi Ahamed Azeem, Please follow the below db statement. SELECT OBJECT_NAME(OBJECT_ID) AS DatabaseName, last_user_update,* FROM sys.dm_db_index_usage_stats WHERE database_id = DB_ID( 'Your DB Name') AND OBJECT_ID=OBJECT_ID('Your Table Name'). It'll show you last modified DateTime for a particular table in a particular DB. U can remove where condition to view all the records from all the DB tables. I think u understand it:thumbsup:..

          Rajendra Prasad panchati .Net/Sharepoint Software Engineer. Hyderabad.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups