I have a database schema called Fulcrum
that has a table called Orders
with PK on OrderNO, OrderDate, TenantID
I have a bridge database schema called XFer
where I also have a table called Orders
with the same field names but no keys on OrderNO, OrderDate, TenantID
I need to create a trigger behind the Orders
in Xfer
that deletes the matching row in Fulcrum.dbo.Orders
when I delete the row in XFer.dbo.Orders
thank you
Considering you are using
Microsoft SQL Server
syntax to create such trigger is :Obviously the syntax might not be perfect, but this is close to what you need.