do it as followsCREATE TRIGGER MyTrig ON Table1INSTEAD OF INSERT,UPDATEASUPDATE tSET t.Col=LEFT(i.Col,50),--col is column to be checked for insert/updatet.Col1=SUBSTRING(i.Col,51,LEN(Col)-50).........other fieldsFROM Table tINNER JOIN INSERTED i--record exists so updateON i.pk=t.pk--pk is primary keyINSERT INTO Table (Col,Col1,...other fields)SELECT LEFT(i.Col,50),SUBSTRING(i.Col,51,LEN(Col)-50),....FROM INSERTED iLEFT OUTER JOIN Table tON t.pk=i.pkWHERE t.pk IS NULL --record not exists (insert)GO