title: insert/delete/update trigger in SQL server
body: <p>I am trying to produce an all-in-one delete/insert/update trigger.  I get two "incorrect syntax near AFTER at the second and third AFTERS and a syntax error near the last END.</p>
  
  <pre><code>CREATE TRIGGER trig_all_dml
   ON [dbo.file]
   AFTER UPDATE
   AS BEGIN
      UPDATE 
             (excess code)       
   END
  
   AFTER INSERT
   AS BEGIN
       UPDATE 
               (excess code)
    END
  
   AFTER DELETE
   AS BEGIN
      UPDATE (excess code)
  
    END
    GO
  </code></pre>
  
  <p>Hopefully, this is enough information.  I think the problem is my syntax but I can't find the correct syntax online.</p>