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. Sql Update Trigger

Sql Update Trigger

Scheduled Pinned Locked Moved Database
databasehelpannouncementcareer
4 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.
  • J Offline
    J Offline
    Jesu Prabhu J
    wrote on last edited by
    #1

    Hello everyone, I need ur help to write a trigger. I have 3 tables (Ex: Employee master,Employee salary details and Employee in_out details),if i update any value in the Employee master table, the value must be automatically updated in other related tables. Plzzzzzzzzzz help urgent!!!!!! Thanks.

    A 1 Reply Last reply
    0
    • J Jesu Prabhu J

      Hello everyone, I need ur help to write a trigger. I have 3 tables (Ex: Employee master,Employee salary details and Employee in_out details),if i update any value in the Employee master table, the value must be automatically updated in other related tables. Plzzzzzzzzzz help urgent!!!!!! Thanks.

      A Offline
      A Offline
      Ashfield
      wrote on last edited by
      #2

      Jesu Prabhu.J wrote:

      Plzzzzzzzzzz help urgent!!!!!!

      Not, its not urgent.

      Jesu Prabhu.J wrote:

      I need ur help to write a trigger.

      So write your version and if it doesn't work post it and someone will help. A clue, you need a trigger on Employee for insert and update which will select the values from the inserted table and update the other two tables. There you go, now google triggers.

      Bob Ashfield Consultants Ltd

      J 1 Reply Last reply
      0
      • A Ashfield

        Jesu Prabhu.J wrote:

        Plzzzzzzzzzz help urgent!!!!!!

        Not, its not urgent.

        Jesu Prabhu.J wrote:

        I need ur help to write a trigger.

        So write your version and if it doesn't work post it and someone will help. A clue, you need a trigger on Employee for insert and update which will select the values from the inserted table and update the other two tables. There you go, now google triggers.

        Bob Ashfield Consultants Ltd

        J Offline
        J Offline
        Jesu Prabhu J
        wrote on last edited by
        #3

        I am using SQL Server 2000, If i change any value Ex: Employee Name in the (Employee Master) the value Employee Name must get updated in the other 2 tables.. Thanks for the Reply..

        A 1 Reply Last reply
        0
        • J Jesu Prabhu J

          I am using SQL Server 2000, If i change any value Ex: Employee Name in the (Employee Master) the value Employee Name must get updated in the other 2 tables.. Thanks for the Reply..

          A Offline
          A Offline
          Ashfield
          wrote on last edited by
          #4

          Jesu Prabhu.J wrote:

          I am using SQL Server 2000, If i change any value Ex: Employee Name in the (Employee Master) the value Employee Name must get updated in the other 2 tables..

          Yes, I assumed you were using SQL Server. You still need a trigger on Employee Master. There are hundreds of examples on Google.

          Bob Ashfield Consultants Ltd

          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