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. Database & SysAdmin
  3. Database
  4. audit trail

audit trail

Scheduled Pinned Locked Moved Database
databasetutorialannouncement
3 Posts 2 Posters 0 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.
  • N Offline
    N Offline
    NidhiKanu
    wrote on last edited by
    #1

    Hi, I want to use audit trail for my application.In my view i shd create one new table with same structure of original table and insert old record of original table into new table at the time of update record.But how to know that there is any updation or not in this record b'cas if any user click on update button then update query will fire either you r updating record or not. Second thing is that i have 40 fields in my table so it is not feasible to me to check for each column of that record for change. Please suggest me way to implement audit trail in my application N!dh! :)

    N 1 Reply Last reply
    0
    • N NidhiKanu

      Hi, I want to use audit trail for my application.In my view i shd create one new table with same structure of original table and insert old record of original table into new table at the time of update record.But how to know that there is any updation or not in this record b'cas if any user click on update button then update query will fire either you r updating record or not. Second thing is that i have 40 fields in my table so it is not feasible to me to check for each column of that record for change. Please suggest me way to implement audit trail in my application N!dh! :)

      N Offline
      N Offline
      N a v a n e e t h
      wrote on last edited by
      #2

      Create a trigger which will execute when update happens. Insert the data into audit table from this trigger. :)

      Navaneeth How to use google | Ask smart questions

      N 1 Reply Last reply
      0
      • N N a v a n e e t h

        Create a trigger which will execute when update happens. Insert the data into audit table from this trigger. :)

        Navaneeth How to use google | Ask smart questions

        N Offline
        N Offline
        NidhiKanu
        wrote on last edited by
        #3

        I am using one procedure to update main table,then one trigger to update other table affected by this table,i think updation execute bfor execution of trigger. N!dh! :)

        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