Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

refrential integrity and delete

Status
Not open for further replies.

davikokar

Technical User
May 13, 2004
523
IT
Hallo,
how does referential integrity affects the possibility to delete from the tables? I have many tables linked to each other and I run different sql statement in order to delete different records. But the records won't be deleted.
Do you have an idea about it?

thanks
 
Provided you don't use Cascade delete, the referential integrity prevents orphaned child records.
You have to delete all the child records before deleting the parent record.
If you have circular references then you can't delete ...

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top