CREATE TRIGGER tabpeople_i ON tabpeople FOR INSERT AS BEGIN SET NOCOUNT ON; UPDATE t SET name='00000'+LTRIM(rtrim(str(i.id))) FROM tabpeople t JOIN inserted I ON i.id=t.id END
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)