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. How to write a TRIGGER?

How to write a TRIGGER?

Scheduled Pinned Locked Moved ASP.NET
databasetutorialquestionannouncement
2 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.
  • M Offline
    M Offline
    mcmilan
    wrote on last edited by
    #1

    Hi, When I update a Particular row with some value in sql table(letus consider Emp1) that row should be inserted inot another table (consider Emp2) and should be deleted from Emp1. For this I want to write a Trigger.......How..? Exact requirement:: I have Emp1(Id,Name,Desig) table. When I update a particualr row where Id='3' Then only..... 1.Particular row which is update with Id value '3' should be inserted into the Emp2(Id,Name,Desig) table. And 2. After inserting into the Emp2 The row should be deleted from Emp1. Thanking you McMilan.

    S 1 Reply Last reply
    0
    • M mcmilan

      Hi, When I update a Particular row with some value in sql table(letus consider Emp1) that row should be inserted inot another table (consider Emp2) and should be deleted from Emp1. For this I want to write a Trigger.......How..? Exact requirement:: I have Emp1(Id,Name,Desig) table. When I update a particualr row where Id='3' Then only..... 1.Particular row which is update with Id value '3' should be inserted into the Emp2(Id,Name,Desig) table. And 2. After inserting into the Emp2 The row should be deleted from Emp1. Thanking you McMilan.

      S Offline
      S Offline
      Sherin Iranimose
      wrote on last edited by
      #2

      Wrong forum, you could ask it better in the sql forum :) But before that search it in google, Its not that much difficult. :)

      EVEN THE WORD IMPOSSIBLE SAYS I M POSSIBLE.

      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