Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Fkey question
Message
From
25/08/1999 16:02:02
 
 
To
All
General information
Forum:
Microsoft SQL Server
Category:
Database management
Title:
Fkey question
Miscellaneous
Thread ID:
00257611
Message ID:
00257611
Views:
47
Hi,

simpe relation A->B (1->M)

I put an fkey constraint on fkey in table B because I do not want any records entered in B that do not match up with key in A ... great it works.

Now ... I want to BE ABLE TO DELETE a row from A and have it cascade to delete related rows in B ... I write it as a trigger in A and it works too ... but only if I don't have the fkey constraint in B! Otherwise, I never get to the trigger because of FKEy violation error.

How can I get my cake and eat it too here? It's like I really only want "one side" of the fkey cosntraint.

TIA,
Ken
Ken B. Matson
GCom2 Solutions
Next
Reply
Map
View

Click here to load this message in the networking platform