Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Referential Integrity question
Message
From
17/07/1999 12:24:34
Rex Mahel
Realm Software, Llc
Ohio, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Referential Integrity question
Miscellaneous
Thread ID:
00242757
Message ID:
00242757
Views:
41
All,

I have two file in a one to many relationship. I am trying to restrict insertion of records into a child table unless a parent record exists, but I have found that the act of inserting a record in the child causes the trigger to fail unless I have a dummy record in the parent with a blank key.

Two question:

1 Is there a way to insert a record in the child with the parent key already replaced?

2. Is putting a dummy record in the parent the only way around this problem?

TIA

Rex
Next
Reply
Map
View

Click here to load this message in the networking platform