Delete records from FK table corresponding to PK table

Delete records from FK table corresponding to PK table

 

  

Hi

I have two tables

Table Name : ATCS
Composite primary key:
Atcs_article
atcs_ticket
atcs_wbc
atcs_shade

Table Name :- Reqn
Primary Key : - Rqn_reqn_num

Foreign Key Rqn_article
Rqn_ticket
Rqn_wbc
Rqn_shade

I want to delete all the corresponding records from the Reqn table
first,whenever any record is being deleted from the
ATCS table. Delete trigger on the ATCS table will be better to manage this
situation or any other way will be best?


Thanks & Regards

Manoj Kumar





*********************************************
This communication which may be confidential and privileged and the
views expressed herein may be personal and are not necessarily the
views of Coats Ltd. It is for the exclusive use of the intended
recipients(s). If you are not the intended recipient(s), please note that
any distribution, copying or use of this communication or the information
in it is strictly prohibited. If you have received this communication in
error, please notify us by email (Apps.[Email Address Removed] or telephone
our technical support helpdesk at Coats Ltd. +44 (0)20 8210 5100
(UK 0830h - 1800h, Mon-Fri, GMT) and then delete the e-mail and
any copies of it.
**********************************************

MS Sql Server LazyDBA home page