<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : Modify Primary Key Value</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2009 : Modify Primary Key Value</description>
  <pubDate>Tue, 28 Apr 2026 08:07:15 -700</pubDate>
  <lastBuildDate>Sun, 17 May 2009 17:43:50 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=1261</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>Modify Primary Key Value : Arethere any plans to make Primary...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1261&amp;PID=4550#4550</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=42" rel="nofollow">Markh</a><br /><strong>Subject:</strong> 1261<br /><strong>Posted:</strong> 17-May-2009 at 5:43pm<br /><br />Are&nbsp;there any plans to make Primary Keys updatable within DevForce WinClient ?<DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Sun, 17 May 2009 17:43:50 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1261&amp;PID=4550#4550</guid>
  </item> 
  <item>
   <title>Modify Primary Key Value : Well, now that I think about it,...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1261&amp;PID=4547#4547</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=4" rel="nofollow">GregD</a><br /><strong>Subject:</strong> 1261<br /><strong>Posted:</strong> 15-May-2009 at 6:00pm<br /><br />Well, now that I think about it, I can see how that would create a problem. We can only find the OrderDetail record we want to update in the database by its primary key value, but there's almost certainly no OrderDetail record that matches the primary key value that our local record now has.<br><br>With the database as designed, our only recourse is to create a new OrderDetail record (with the Product we want), copy other property values from the existing record, then delete the existing record.<br><br>One more reason why I personally avoid composite keys like the plague.<br><br>I'll change the Learning Unit solution to make the Product property read-only.<br><br>Greg Dunn<br>Training &amp; Docs Mgr<br>]]>
   </description>
   <pubDate>Fri, 15 May 2009 18:00:17 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1261&amp;PID=4547#4547</guid>
  </item> 
  <item>
   <title>Modify Primary Key Value : Just using the Learning Units\WinClient-Only\200...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1261&amp;PID=4541#4541</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=42" rel="nofollow">Markh</a><br /><strong>Subject:</strong> 1261<br /><strong>Posted:</strong> 14-May-2009 at 11:03pm<br /><br />Just using the Learning Units\WinClient-Only\200 Intermediate\Adding and Deleting Entities Example<DIV></DIV>When I change an order detail (ie Change the Product) and try to save the following exception occurs<DIV></DIV><DIV></DIV><DIV>&nbsp;</DIV><DIV>A referential integrity constraint violation occurred: The property values that define the referential constraints are not consistent between principal and dependent objects in the relationship</DIV><DIV></DIV><DIV>&nbsp;</DIV><DIV>Is this saying that once a primary key has been created you can not change any of the primary key values!</DIV><DIV>&nbsp;</DIV><DIV>How can you change the OrderDetail to allow the Product to be changed ?</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Thu, 14 May 2009 23:03:11 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1261&amp;PID=4541#4541</guid>
  </item> 
 </channel>
</rss>