Click here to Skip to main content
15,887,746 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hello,
Provide me stored procedure for when i delete country then its associated city will be deleted.
Please provide me stored procedure completely.
Posted
Updated 20-May-11 0:16am
v4
Comments
Rob Branaghan 20-May-11 6:08am    
What is the structure of your table?
Are Countries in a seperate table to City?
Try and explain to us as if we have never heard of the project you are working on.... Because we havent.

Are you really sure you want to delete them as well, surely flagging as deleted is a little less final!

To get assistance here you need to give us more information than that.
[no name] 20-May-11 6:23am    
Please provide the specific information about your table design, then only we can help on this.
Member 7894537 20-May-11 7:01am    
let there are three table one for country , one for state and one for city .
admin has facility to add country state and city.
ok let admin add country india . and by another form add state Madhya pradesh, maharasht and others.
if admin delete country(parentroot) india then state(childroot) Madhya pradesh, maharasht and others also be deleted.
provide me stored procedure for it.

1 solution

We are here to guide you not to do your Homewrok.

Hope this[^] might help you. Based on that please write your stored procedure as per your requirement.
 
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