NXP-13925: improve SQL Server duplicate row prevention (fix trigger)