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 17,971 of 19,505   
   Erland Sommarskog to Richard   
   Re: Trigger to update field in new recor   
   23 Oct 10 21:02:06   
   
   83647c82   
   From: esquel@sommarskog.se   
      
   Richard (richard.mogy@gmail.com) writes:   
   > Here is a SQL statement that I am currently running:   
   >   
   > update timecard set tudef1='JP0' where tudef5='JP' and tmatter in   
   > (select mmatter from matter where mloc='30')   
   >   
   > I would like this update to happen when a new record is inserted in   
   > the timecard table.  How can I set up a trigger to do this.   
      
   See response in microsoft.public.sqlserver.clients.   
      
      
   --   
   Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se   
      
   Links for SQL Server Books Online:   
   SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx   
   SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx   
      
   --- 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