Do not fire trigger for specific updates

I have a table that has a timestamp filed and varchar2 field that keeps track of the last update.
I have written a trigger that executes after update for each row and inserts the current user and sysdate into this fields. However most of the updates to this table are done to a single column and when this is the case I do not want the trigger to fire. If the update is done to any other column yes, but to this specific column then no.
Is there a way to implement this?
Thank you for your help.

One obvious way is to use the 'FOR UPDATE OF' clause, which allows you to list the columns that are supposed to fire the trigger.
There is, as far as I know, no 'FOR UPDATE OF ALL EXCEPT ...' capability.
More details in the SQL Reference manual.

Similar Messages

  • SCCM Query to list machines that are not compliant to a specific Update List?

    Hello,
    I have been trying to create a Collection-based Query that collects all machines which are not compliant with a specific Update List. I have looked everywhere for some information about an Attribute that relates to Update List without any luck....
    Im thinking one of the Attributes under Software Updates class must be the answer. Since i can draw a report that shows AuthListID with a value of ScopeId_xXxxx/AuthList_xxxxx, there must be a related attribute somewhere to add in a collection-based
    query. Has anyone successfully done this? Any related information would be very much appreciated.

    Hi,
    By following SQL Query you can list out the systems as per their compliance state against particular assignment.
    1) get the assignement ID
    Select * from v_CIAssignment order by AssignmentID
    2) Put the assignment id into the the following query which you get in step1
    SELECT v_R_System.Name0, 
    REPLACE
    (REPLACE
     (REPLACE
      (REPLACE
       (REPLACE
        (REPLACE
         (REPLACE
          (REPLACE
           (REPLACE
            (REPLACE(v_AssignmentState_Combined.StateID,'0','enf state unknown')
            ,'1','Compliant')
            ,'2','Non compliant')
            ,'4','Succesfully installed updates')
            ,'5','Pending restart')
            ,'6','Failed to install updates')
            ,'7','Downloading updates')
            ,'8','Downloaded updates')
            ,'9','Failed to download updates')
            ,'10','Waiting for maintenance window before installing') as [State]
    from v_R_System,v_AssignmentState_Combined
    where v_R_System.ResourceID = v_AssignmentState_Combined.ResourceID and
    v_AssignmentState_Combined.AssignmentID = <AssignmentID>
    SourabhR

  • Provision that MRP is not be considered for specific line item of Sales Ord

    Is their any provision that MRP is not be considered for specific line item of Sales Order in MRP run? (Ex: Planned order is also generated for free/ADC sample quantity entered in Sales order)

    Dear
    Go to Sales and distribution--> Sales --> Sales Documents -->Schedule Lines --> Assign schedule line categories.
    Choose the item category (eg. TAN)  which is coming in the sales order and enter CN - No. Mat. Planning in the the manual schedule line category (MSL Ca) for MRP type PD.
    This will enable you to choose while creating sales order in the Tab procurement column SL Ca.
    Choose CN - No mat.planning for the schedule items which you don;t want MRP.
    Regards
    Soundar

  • I have a G5 and bought and upgraded to osx 10.5.  now i need to upgrade to 10.5.6 or higher, but when i download and try to install, i get message "this volume does not meet requirements for this update".

    i am trying to sync an ipad to a power mac g5.  i bought and upgraded to osx 10.5 and have tried to download and 10.5.6 or higher, but i keep getting same message:  "you cannot install mac os x update on this volume.  this volume does not meet requirements for this update".  help!

    Mac OS X 10.5.8 Combo Update
    Java for Mac OS X 10.5 Update 5
    To me, in all such updates, goes without saying maybe: backup, repair permissions, repair your drive (Disk Warrior does more reliable and thorough job, and it comes out to pennies if you don't wait until needed). Clone your system so you can restore or use the backup - just in case.
    I'd even do a fresh format after your clone is done and do a full OS clean install and update, and then a quick import from Setup Assistant.
    Mac computer with USB 2.0 port
    Mac OS X v10.5.8 or later
    iTunes 10.2 or later recommended
    (free download from www.itunes.com/download)
    iTunes Store account
    Internet access
    I'm going to assume there is something with the partitions on the drive, partition table most likely, though I know I've seen others with that error message - doesn't really point to cause, rarely does (make sure latest firmware update etc is sometimes included but again, we know that isn't why).

  • I bought a MacBook Pro I can not sign up for the updates, because I do not have credit card. Only own debit card, but the system does not accept. What can I do?

    I bought a MacBook Pro I can not sign up for the updates, because I do not have credit card. Only own debit card, but the system does not accept. What can I do?

    You do not need to "sign up" for downloading updates. Just run Software Update and let it access them directly thru the App Store.

  • Overhead user exit (COOM0001) not being triggered for specific plant

    Hello all,
    I was wondering if anyone came across this situation before. I activated user exit COOM0001 for overhead calculation. This user exit is triggered when I create PCE for plant A but not plant B.
    I can't figure out why it is not being triggered for plant B at all. I put a break point in function module EXIT_SAPLKASC_001, EXIT_SAPLKASC_002 and EXIT_SAPLKASC_003 and the system didn't stop in anyone of these function module.
    Any help is greatly appreciated.
    Regards,
    Cassandra

    Hi
    It seems that you are a Functional Consultant.
    Please follow the following simple step for any userexit to see where all its been called.
    1. Go To T. Code SMOD
    2. Enter the Exit name COOM0001
    3. Click on the COMPONANTS RADIO BUTTON and DISPLAY
    4. U get Function Modules
    EXIT_SAPLKASC_001
    EXIT_SAPLKASC_002
    EXIT_SAPLKASC_003
    5. Now individually double click on each FM and put a break point ther.
    6. Open a new session and see wheather it stop at the break-points of the T. code you are looking for.
    I havent used this user exit, so no comments on how it ll be use ful.
    Reward points if useful
    Thank-You
    regards
    vinsee

  • Idoc trigger for inventory updates.

    Hi ,
    we want to send our inventory update for a specific storage type to a third party system. when ever  the quantity in a particular bins of the storage type gets updated an IDoc should e created to send the remaining quantity to a third party system. the triggers include any goods movements (PGI, goods issues, goods receipts). So my question is where do I write the trigger. Do i have to write the trigger against each transaction that will impact in goods movements or is there any way that I could write it at a higher level  so every goods movement thats happening in the SAP system will check whether it has to create an IDOC or not.

    what happens if I use MB1A, MB1B, MB1C?
    what happens if I dont post material document and just perform bin to bin transfer.
    I want the the Inventoy level at a particular bin when ever there is a change to in the quantity.
    how can I achieve this??
    Edited by: deepu p on Mar 17, 2011 2:18 PM

  • What's the exact trigger for when updating/inserting/deleting data from one DB to another DB which contains same info?

    Hi guys,
    I have created a copy of the AdventureWorks2012 DB called AdventureWorks2012_new on the same instance.
    I have created the following trigger below but my friend who is a DBA told me that this is not correct and I should be using the inserted table when creating this trigger. I would like AdventureWorks2012_new DB to be updating/inserting/deleting data from
    the same tables that have been updated/inserted/deleted in the AdventureWorks2012 DB. How exactly should I do this for all the tables in the whole database ? What I have written below is just for one of the tables, is there a quicker way to do it for all tables
    in this DB so that it performs the actions mentioned above, automatically ? Help would be greatly appreciated so I can understand how this works, thanks
    CREATE TRIGGER [HumanResources].[tr_HumanResources_AfterUpdate]
    ON [AdventureWorks2012].[HumanResources].[Department]
    AFTER UPDATE
    AS
    BEGIN
    SET NOCOUNT ON;
    UPDATE AdventureWorks2012_new.HumanResources.Department
    SET Name = t2.Name,
    GroupName = t2.GroupName,
    ModifiedDate = t2.ModifiedDate
    FROM AdventureWorks2012.HumanResources.Department AS t2
    INNER JOIN AdventureWorks2012_new.HumanResources.Department AS t1
    ON t2.DepartmentID = t1.DepartmentID
    END

    For insert it's easy:
    CREATE TRIGGER [HumanResources].[tr_HumanResources_AfterInsert]
    ON [AdventureWorks2012].[HumanResources].[Department]
    AFTER INSERT
    AS
    BEGIN
    SET NOCOUNT ON;
    Insert INTO AdventureWorks2012_new.HumanResources.Department
    (DepartmentID, Name, GroupName, ModifiedDate)
    SELECT DepartmentID, Name, GroupName, ModifiedDate
    FROM Inserted;
    END
    I didn't verify column names, so you may need to make sure to use correct column names for that table.
    Setting replication is a bit advanced topic although BOL is clear and you may start here
    http://technet.microsoft.com/en-us/library/ms151198.aspx
    If it will be complicated for you, you can ask extra questions in the MSDN Replication forum.
    For every expert, there is an equal and opposite expert. - Becker's Law
    My blog
    My TechNet articles

  • Living in Africa, internet not strong enough for software update

    Greetings Apple,
    I'm living in Mozambique right now and finding it very difficult to update the Apple updates. The internet that I am able to access is about as good as it gets here in this country. I'm going to have to find a way to do it and hope you will offer some suggestions.
    Here is what happens:
    When I go to the usual apple menu drop-down and select software update, it goes through the initial process, then begins the download, with the box: "downloading 2 items - downloading Mac OSX Update Combined . . . 1.37 GB of 1.06 GB - About 5 seconds"
    but, part way through, something goes amiss (probably the Mozambican internet is interrupted as it usually is) and I never even get to the place where I can then install them. I consistently get a message box that says: "The update 'Mac OS X Update Combined can't be saved. Software Update can't connect to the update server. Make sure you're connected to the internet, and then try again.'"
    Is there a way that I can go to the apple website, get the list of what is included in the upgrades, and then download them one at a time? That would help those of us living in less-than-ideal internet situations.
    thanks for your assistance!
    Autumn

    Thanks for your reply.
    I have also been doing this that you suggest.
    I have gone to the Mac OSX v10.6.6 Update Combo page
    and been trying over and over to download it, but am not able to. Also tried the Mac OSX v10.6.6 update (not combo). It downloaded 55.1 of 144 MB quite well, then stopped downloading, even though the internet connection was fine, and didn't go anywhere. This problem has been happening consistently for me.
    I have gone to the download site and individually downloaded the following:
    I did iTunes 10
    I did Safari 5.0.3
    what else am I missing?
    Thanks again,
    Autumn

  • Do not require smartcard for specific user logon

    Hi everyone!
    I set up a GPO setting for some application server "Interactive logon: Require smart card" to "enabled". So, now I need to allow a specific user (admin, for example) to logon to this computer without smartcard. How can I do this?
    Note, that I need to allow only one user to logon without smartcard and other users must use their smartcards (but strongly they must use smartcards only for this application server - so, they should be able to logon to other domain computers without smartcard).
    How can I reach this goal?

    > Require smart card" to "enabled". So, now I need to allow a specific
    > user (admin, for example) to logon to this computer without smartcard.
    > How can I do this?
    To be honest: You cannot. Your setting is a computer setting and has no
    exception possibilities for a subset of users. The other solution (AD
    account properties of users) have no exception possibilities, too.
    To me, it seems this user needs 2 accounts... One with "smartcard
    required" to logon to all other computers and a second one that can only
    logon to this computer (user rights: "allow logon locally").
    Martin
    Mal ein
    GUTES Buch über GPOs lesen?
    NO THEY ARE NOT EVIL, if you know what you are doing:
    Good or bad GPOs?
    And if IT bothers me - coke bottle design refreshment :))

  • WorkFlow get triggered even if we set trigger for item update with SPEmailEventReceiver and workflow attached to same Library

    Hi All,
               I have a situation, SPEmailEventReceiver and WorkFlow is attached to same library, WorkFlow is configured to run after item is updated, but soon as the email is received in library the workflow
    is getting triggered, We have a action to create folder with subject and date and put the attachment with the date folder in SPEmailEventReceiver e.g: once a mail is received in library the SPEmailEventReceiver will create a folder with Subject and then Folder
    with Date and then put the attachment in the date folder so hierarchy will be subject folder/Date folder/attachment
    I have tried to alter the SquenceNumber attribute in Feature Element file to 1 and make the Synchronization as synchronous but no luck.

    Hi,
    Here are some articles for your reference:
    Programmatically creating Folders within SharePoint List
    http://www.mindfiresolutions.com/Programmatically-creating-Folders-within-SharePoint-List-487.php
    How to use SPEmailEventReceiver?
    http://kkryczka.wordpress.com/2010/11/05/how-to-use-spemaileventreceiver/
    Attachments disappear with custom email event handler
    http://blogs.msdn.com/b/malag/archive/2009/05/13/attachments-disappear-with-custom-email-event-handler.aspx?PageIndex=2
    Thanks,
    Dennis Guo
    TechNet Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Dennis Guo
    TechNet Community Support

  • Automatic PO output Determination do not get trigger for SRM Classic impl

    Hello,
    We have implemented SRM 7.0 classic scenarios. We have set up system in such a way that whatever user put in Preferred Supplier at Shopping cart while saving the shopping cart we convert it to Supplier partner type and once approved create PO in ERP system.
    Things are working perfectly fine but the problem we are facing is Output determination. We have Vendor email address maintained in vendor master and placed Condition type in MN04 for vendor with Immediate output of email.
    But whenever PO is being created that automatic output determination is not being triggered...
    Could anyone please help what thing i am missing.
    Thanks
    Ritesh

    Hi,
    Please check the created condition record in MN06 in all aspects i.e. partner fucntion name, Medium (5), Language, etc.
    I believe  you have created the condition record with the combination of vendor/pur.org/document type.
    Also check the Actual processing tab and general data is there any check box against Locked field.
    Thanks
    Rajesh K

  • Event Handler is not getting trigger for Freely Programmed search help

    Hi All,
       I am having a component comp1 defined for value help with one event. In component comp2 i want to call the comp1 but the event handler which i have created is not getting triggered. Any reasons for it.
    Thanks
    Raghavendra

    Hi Kumar,
    Please check these forum threads.
    Re: Help required on Freely Programmed Input help
    Re: Custom search help

  • I have downloaded Firefox 5 but am still am getting frequent remineders to upload ner security app. When I click all I get is about downloading the general program. I do not see anything for just updating security. What am I supposed to do?

    I have downloaded Firefox 5 twice. Now I am getting an e-mail telling me to download the new security attachments. When I click it what I get is downloading Firefox 5. I do not not see anything about downloading a new attachment for security purposes. When I click downloading Firefox 5 I am told that I already have it. How do get just the security component.
    Dr. Laurie

    Firefox does not send emails to users about anything. Who is the sender of that email? It's probably a scam. You have Firefox 4.0.1 as indicated in your System details. You might want to scan your Mac with anti-virus/spywares programs to make sure no malwares and/or spywares were installed. That could have explained why you received such email.
    FYI, Even if your email has an attachment, you should never open it unless it's being sent from someone you know.
    And are these reminders come in the form of emails or pop-ups? If they are emails, I'll report them as spams and delete them.

  • Insert 50 rows, fire trigger once

    Is there a way to create a trigger that fires once after several inserts, instead of firing for each inserted row.
    I want the trigger to fire once for a transaction.

    An easier way is to use the after update trigger and leave out the "for each row". The trigger will only fire once for each update statement, even if the statement altered a million rows.

Maybe you are looking for

  • Partition not showing up and cannot be mounted

    Hi, I have a Samsung 840 pro SSD installed on my macbook with Mountain Lion and earlier my computer froze then the computer was stuck on a white/grey screen for a while before rebooting finally. Since I reboot, my second partition is not showing up.

  • File transfer problem between Host OS and Guest OS

    Hi, I have WIndows7 32 bit as a host OS in C drive. and i have installed the Virtualbox in D drive and installed CentOS 6 in virtual box as a guest OS. After installing the Guest Additions in CentOS and set the Drg n Drop-Bidirectional. it permits to

  • How to mask or hide the bidder name in participant panel in SRM 7.01 LAC

    Hi Forum, We have a requierment to change the participant bidder and contact persons names with some dummy values like bidder1, CP1 and bidder2 CP2....instead of displaying the real name of bidder and contact person in the participant display window

  • Captivate 6 - How to stop reloading swf?

    Hello! I made Flash Drag&Drop interaction and I imported it into Captivate 6. Unfortunately the interaction restarts every time I revisit the slide and I have to drag and drop from the beginning. I want swf to load only once. I suppose I should use w

  • Can't Open Some Document Files, Told To Install Pages 5.0, It Is. What Can i Do?

    Pages 5.0 Installed.  Now I cant open some document files.  I'm asked to install Pages 5.0.  I have to take additional steps to Open Under etc. What can I Do?