Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Triggers, stored procedures
Message
From
22/07/1999 14:09:40
Cheryl Qualset
Qualset Computer Consulting
Davis, California, United States
 
 
To
All
General information
Forum:
Microsoft SQL Server
Category:
Database design
Title:
Triggers, stored procedures
Miscellaneous
Thread ID:
00244883
Message ID:
00244883
Views:
48
I want to recreate a VFP database in SQL Server 7.0

In FoxPro, you can define a relationship between two tables and have FoxPro automatically generate stored procedures for insert, update, and delete.

For Updating the parent key field, there are Cascade, Restrict, Ignore options.

For Deleting the parent record, there are Cascade, Restrict, Ignore options.

For Inserting a Child record, there are Restrict, Ignore options.

Deleting a parent is not problem, I can make a trigger to delete all related children when a parent is deleted (cascade)(this gives strange result codes back to VFP, though). I can make a trigger to disallow deletion of a parent when there are children present (restrict).

Inserting a child is not a problem, I can disallow a new child with no parent, but I don't know how to cascade parent key changes to children when it is more than 1 parent record being changed.

This is not a situation that happens often, but we are keeping the VFP database for offline use and it might become important if something terrible happens and we have to fix things.

Any help would be appreciated.
Next
Reply
Map
View

Click here to load this message in the networking platform