hm, i cannot update inserted table, hm this will be very usefull !maybe this simple trigger i can write by another normal way ?why in mssql i cannot edit (update) inserted table, for example this type of checking will be more faster if exists ( select value from inserted ) but i must write ar first declare @value domain_name select @value=value from inserted where..... if @value = ddddd then instead of one string i must to use 3 strings and also declare variables maybe is any out of this situation ? ALTER TRIGGER T_DELETE_OLD_S_PART ON MAIN_IMAGE_LIST FOR INSERTASDECLARE @ID D_MAIN_ID, @S_PART D_MAIN_IMAGE_LIST_S_PART, @OVNER_ID D_MAIN_IDBEGIN SELECT @ID=ID, @S_PART=S_PART, @OVNER_ID=OVNER_ID FROM INSERTED IF @S_PART='TEMA' BEGIN UPDATE MAIN_IMAGE_LIST SET S_PART='' WHERE OVNER_ID=@OVNER_ID AND S_PART='TEMA' AND ID!=@ID ENDEND
thanks