SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO
ALTER trigger TI_ROLE
on dbo.ROLE for insert as
begin
if exists
(
select * from inserted, ROLE
where
ROLE.LIBELLE = INSERTED.LIBELLE
)
begin
rollback transaction
end
end
GO
SET QUOTED_IDENTIFIER OFF
GO
SET ANSI_NULLS ON
GO
lorsque je l'execute sous SQL SERVER il em dis que la requet c'est bien déroulée.
Lorsque je fais un INSERT sur la table ROLE que l'enregistremetn existe ou non il n eme fait plus l'INSERT.
pourquoi ???