﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Database Deployment Toolkit » Database Deployment Toolkit (How do I?)  » Mapping VFP R.I. Rules to SQL Relationships</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Thu, 09 Apr 2026 03:21:56 GMT</lastBuildDate><ttl>20</ttl><item><title>Mapping VFP R.I. Rules to SQL Relationships</title><link>http://forum.strataframe.net/FindPost32262.aspx</link><description>Hello,&lt;br/&gt;&lt;br/&gt;I have the following relationship in a VFP database:&lt;br/&gt;&lt;br/&gt;&lt;table style="BORDER-TOP: rgb(0,0,0) thin solid; BORDER-RIGHT: rgb(0,0,0) thin solid; BORDER-BOTTOM: rgb(0,0,0) thin solid; BORDER-LEFT: rgb(0,0,0) thin solid; WIDTH: 100%"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="BORDER-TOP: rgb(0,0,0) thin solid; BORDER-RIGHT: rgb(0,0,0) thin solid; BORDER-BOTTOM: rgb(0,0,0) thin solid; BORDER-LEFT: rgb(0,0,0) thin solid"&gt;Parent Table&lt;/td&gt;&lt;td style="BORDER-TOP: rgb(0,0,0) thin solid; BORDER-RIGHT: rgb(0,0,0) thin solid; BORDER-BOTTOM: rgb(0,0,0) thin solid; BORDER-LEFT: rgb(0,0,0) thin solid"&gt;Update&lt;/td&gt;&lt;td style="BORDER-TOP: rgb(0,0,0) thin solid; BORDER-RIGHT: rgb(0,0,0) thin solid; BORDER-BOTTOM: rgb(0,0,0) thin solid; BORDER-LEFT: rgb(0,0,0) thin solid"&gt;Delete&lt;/td&gt;&lt;td style="BORDER-TOP: rgb(0,0,0) thin solid; BORDER-RIGHT: rgb(0,0,0) thin solid; BORDER-BOTTOM: rgb(0,0,0) thin solid; BORDER-LEFT: rgb(0,0,0) thin solid"&gt;Insert&lt;/td&gt;&lt;td style="BORDER-TOP: rgb(0,0,0) thin solid; BORDER-RIGHT: rgb(0,0,0) thin solid; BORDER-BOTTOM: rgb(0,0,0) thin solid; BORDER-LEFT: rgb(0,0,0) thin solid"&gt;Child Table&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="BORDER-TOP: rgb(0,0,0) thin solid; BORDER-RIGHT: rgb(0,0,0) thin solid; BORDER-BOTTOM: rgb(0,0,0) thin solid; BORDER-LEFT: rgb(0,0,0) thin solid"&gt;TableA&lt;/td&gt;&lt;td style="BORDER-TOP: rgb(0,0,0) thin solid; BORDER-RIGHT: rgb(0,0,0) thin solid; BORDER-BOTTOM: rgb(0,0,0) thin solid; BORDER-LEFT: rgb(0,0,0) thin solid"&gt;Restrict&lt;/td&gt;&lt;td style="BORDER-TOP: rgb(0,0,0) thin solid; BORDER-RIGHT: rgb(0,0,0) thin solid; BORDER-BOTTOM: rgb(0,0,0) thin solid; BORDER-LEFT: rgb(0,0,0) thin solid"&gt;Restrict&lt;/td&gt;&lt;td style="BORDER-TOP: rgb(0,0,0) thin solid; BORDER-RIGHT: rgb(0,0,0) thin solid; BORDER-BOTTOM: rgb(0,0,0) thin solid; BORDER-LEFT: rgb(0,0,0) thin solid"&gt;Ignore&lt;/td&gt;&lt;td style="BORDER-TOP: rgb(0,0,0) thin solid; BORDER-RIGHT: rgb(0,0,0) thin solid; BORDER-BOTTOM: rgb(0,0,0) thin solid; BORDER-LEFT: rgb(0,0,0) thin solid"&gt;TableB&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;What would the equivalent be in a SQL Foreign Key&amp;nbsp;Relationship (alter table code example would be helpful), and how would I set that up in the DDT?&lt;br/&gt;&lt;br/&gt;Thanks.&lt;br/&gt;&lt;br/&gt;Bill</description><pubDate>Thu, 14 Nov 2013 12:49:20 GMT</pubDate><dc:creator>William Fields</dc:creator></item><item><title>RE: Mapping VFP R.I. Rules to SQL Relationships</title><link>http://forum.strataframe.net/FindPost32299.aspx</link><description>FYI - The only way to "Ignore" inserted FK records that do not have a corresponding PK record is to use .NULL.&lt;br/&gt;&lt;br/&gt;This doesn't work for my scenario, but that's how this VFP functionality&amp;nbsp;could be set up in SQL.</description><pubDate>Thu, 14 Nov 2013 12:49:20 GMT</pubDate><dc:creator>William Fields</dc:creator></item></channel></rss>