Click here to Skip to main content
15,899,025 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,

I have following table structure.

Products Product_Categories Product_Symptoms

.......................... ..................................................... ........................................................

Product_id (pk) Product_Catg_id(fk) Product_Sym_id(fk)

Product_name Product_name Product_name

Product_MRP Category_name Symptom_name

Product_price

......................................................................

in my asp application if i delete product_name in product table it has to delete in Product_Categories and Product Symptoms also. Same thing for Update also.

Can i have any sample code for this requirement.

Thanks
Posted
Comments
Thanks7872 29-Aug-13 1:45am    
Can i have any sample code for this requirement.

Do you think this as question?

The easiest way is to let SQL handle it: use Cascading Delete.
See here: http://technet.microsoft.com/en-us/library/ms186973(v=sql.105).aspx[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900