Mapping VFP R.I. Rules to SQL Relationships


Author
Message
William Fields
William Fields
StrataFrame User (134 reputation)StrataFrame User (134 reputation)StrataFrame User (134 reputation)StrataFrame User (134 reputation)StrataFrame User (134 reputation)StrataFrame User (134 reputation)StrataFrame User (134 reputation)StrataFrame User (134 reputation)StrataFrame User (134 reputation)
Group: StrataFrame Users
Posts: 80, Visits: 239
Hello,

I have the following relationship in a VFP database:

Parent TableUpdateDeleteInsertChild Table
TableARestrictRestrictIgnoreTableB
What would the equivalent be in a SQL Foreign Key Relationship (alter table code example would be helpful), and how would I set that up in the DDT?

Thanks.

Bill
William Fields
William Fields
StrataFrame User (134 reputation)StrataFrame User (134 reputation)StrataFrame User (134 reputation)StrataFrame User (134 reputation)StrataFrame User (134 reputation)StrataFrame User (134 reputation)StrataFrame User (134 reputation)StrataFrame User (134 reputation)StrataFrame User (134 reputation)
Group: StrataFrame Users
Posts: 80, Visits: 239
FYI - The only way to "Ignore" inserted FK records that do not have a corresponding PK record is to use .NULL.

This doesn't work for my scenario, but that's how this VFP functionality could be set up in SQL.
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search