Results 1 to 2 of 2

Thread: Trigger Help

  1. #1
    Join Date
    Jul 2009
    Location
    Dallas, TX
    Posts
    2

    Question Unanswered: Trigger Help

    I need some assistance on writing up a trigger. I've searched, but still cant find anything close to what I'm looking.

    This is what I'm trying to do.

    Before a record is deleted from the Primary_Contact table, a trigger will get the value that's in the objid column and match it to the value in the secondary_contact2primary column that's in the Secondary_Contact table.

    Once matched the records that are in the Seconday_Contact table would need to be copied to an Achive database and then deleted from the Production database.

    Hope this is clear for people to understand.

    Thanks for any help.

    -Gonzalo

  2. #2
    Join Date
    Nov 2004
    Location
    on the wrong server
    Posts
    8,835
    Provided Answers: 6
    there appears to be a couple of articles near the top here...

    Google
    “If one brings so much courage to this world the world has to kill them or break them, so of course it kills them. The world breaks every one and afterward many are strong at the broken places. But those that will not break it kills. It kills the very good and the very gentle and the very brave impartially. If you are none of these you can be sure it will kill you too but there will be no special hurry.” Earnest Hemingway, A Farewell To Arms.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •