home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.databases.ms-sqlserver      Notorious Rube Goldberg contraption      19,505 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 18,574 of 19,505   
   Erland Sommarskog to Gene Wirchenko   
   Re: Trigger help   
   03 Apr 12 07:26:12   
   
   From: esquel@sommarskog.se   
      
   Gene Wirchenko (genew@ocis.net) writes:   
   >      Why would this be relevant since the trigger is for after the   
   > insertion?  Assuming the above is correct, I think that I am missing a   
   > nuance.   
      
   CREATE TRIGGER tri ON tbl AFTER INSERT, UPDATE AS   
      
   Notice the word UPDATE?   
      
   True, I don't know whether Johnnyb wants to handle updates. He only   
   says "when particular text shows up in a particular column". Really what   
   mean I don't know.   
      
      
   --   
   Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se   
      
   Books Online for SQL Server 2005 at   
   http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx   
   Books Online for SQL Server 2000 at   
   http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca