Thanks, i Apreciate your help
Edgar
ALTER TRIGGER [TGRDELETE]
ON [dbo].[test01]
AFTER DELETE
AS
BEGIN
delete test02 from test02
inner join deleted on
test02.norec = deleted.norec
where test02.norec = deleted.norec
END
"Edgar_Torres" <torres...@gmail.com> wrote in message
news:1184083135....@n2g2000hse.googlegroups.com...
DELETE FROM Destination t
WHERE EXISTS ( SELECT *
FROM deleted d
WHERE d.key = t.key )
-- where key is the unique column or set of columns that can identify a row
in the table.
A better alternative to trigger is to use the cascading features of the
referential integrity constraint. You should be able to find out more about
it from SQL Server Books Online.
--
Anith