create trigger trg_salesorder ON sales.orders instead of INSERT
SET NOCOUNT ON;
if id > 5
insert into sales.orders
print 'id must be more than 5'
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)