Microsoft
Software
Hardware
Network
Question : Error on cascading delete command / ORA-02291
Hello guys! I have a mastertable called TBL_VEG_MAINDATA (PK cnt_veg_maindata) and a subtable TBL_VEG_SUBDATA, which references the parent pk column using a foreign key. The foreign key is set to cascade on delete. Hence when I delete a parent entry, all related datsets in my subtable should be automatically deleted as well. Nevertheless, whenever I delete a parent record from TBL_VEG_MAINDATA, I stumble upon an integrity constraint (parent key not found).
In fact I expect the rdbms to automatically forward the delete request to the subtable when the parent dataset is deleted.
Do you have an idea what I am doing wrong?
A million thanks in advance!
Brgds,
Seb
Answer : Error on cascading delete command / ORA-02291
This is another foreign key:
ALTER TABLE "TBL_VEG_MAINDATA" ADD CONSTRAINT "CON_FK_TBL_MAINDATA" FOREIGN KEY ("LNG_GEBIET")
REFERENCES "TBL_GEBIET" ("CNT_GEBIET") ON DELETE CASCADE ENABLE
Random Solutions
Need help in updating a SQL query to retrieve multiple data from a signle column
Managed Folder Mailbox Policy
Backup Exec 12.5 Global Exclusion List
Strange NDR when sending mail
I need IDS software for a Windows 2008 64-bit server ASAP...any recommendations???
NT system generated accounts
get data from class
How to change master page of default.aspx in a site template
Why can't I insert a break point in asp.net backend code?
How can I decrease the amount of time that it takes Outlook 2007 to Send an Receive emails when Outlook is using POP3 for its mail connectivity?