<?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 : DataSourceKeyResolver identity insert issue</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce Classic : DataSourceKeyResolver identity insert issue</description>
  <pubDate>Thu, 11 Jun 2026 00:06:57 -700</pubDate>
  <lastBuildDate>Fri, 25 Jul 2008 12:59:07 -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=776</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>DataSourceKeyResolver identity insert issue : We&amp;#039;ve logged a bug report...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=776&amp;PID=3247#3247</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=11" rel="nofollow">kimj</a><br /><strong>Subject:</strong> 776<br /><strong>Posted:</strong> 25-Jul-2008 at 12:59pm<br /><br />We've logged a bug report for this, thanks for bringing&nbsp;it to our attention.]]>
   </description>
   <pubDate>Fri, 25 Jul 2008 12:59:07 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=776&amp;PID=3247#3247</guid>
  </item> 
  <item>
   <title>DataSourceKeyResolver identity insert issue : Thanks.Was having the same issue,...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=776&amp;PID=3245#3245</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=361" rel="nofollow">brentvee</a><br /><strong>Subject:</strong> 776<br /><strong>Posted:</strong> 24-Jul-2008 at 12:40am<br /><br />Thanks.<br><br>Was having the same issue, and this helped :)<br>]]>
   </description>
   <pubDate>Thu, 24 Jul 2008 00:40:03 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=776&amp;PID=3245#3245</guid>
  </item> 
  <item>
   <title>DataSourceKeyResolver identity insert issue : I&amp;#039;m posting this so if someone...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=776&amp;PID=2851#2851</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=90" rel="nofollow">DataMan</a><br /><strong>Subject:</strong> 776<br /><strong>Posted:</strong> 18-Apr-2008 at 4:45pm<br /><br /><FONT color=#000000>I'm posting this so if someone else has this same issue they won't spend 4 days of debugging to&nbsp;figure out&nbsp;identity columns were not changing from -100 to a positive number when being saved to the table.&nbsp; Here's the situation:</FONT><DIV>&nbsp;</DIV><DIV><FONT color=#000000>Have a ibconfig file that has the following line:</FONT></DIV><DIV><FONT color=#000000 size=2></FONT>&nbsp;</DIV><DIV><FONT color=#000000><FONT size=2>&lt;</FONT><FONT size=2>rdbKey</FONT><FONT size=2> </FONT><FONT size=2>name</FONT><FONT size=2>=</FONT><FONT size=2>"</FONT><FONT size=2>default</FONT><FONT size=2>"</FONT><FONT size=2> </FONT><FONT size=2>databaseProduct</FONT><FONT size=2>=</FONT><FONT size=2>"</FONT><FONT size=2>Unknown</FONT><FONT size=2>"</FONT><FONT size=2>&gt;</FONT></FONT></DIV><DIV><FONT color=#000000><FONT size=2>&lt;</FONT><FONT size=2>connection</FONT><FONT size=2>&gt;</FONT><FONT size=2>Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=xxxx;Data Source=yyyyy</FONT><FONT size=2>&lt;/</FONT><FONT size=2>connection</FONT></FONT><FONT size=2><FONT color=#000000>&gt;</FONT></DIV><DIV><DIV><FONT color=#000000>&lt;</FONT></FONT><FONT color=#000000><FONT size=2>probeAssemblyName</FONT><FONT size=2>&gt;</FONT><FONT size=2>Model</FONT><FONT size=2>&lt;/</FONT><FONT size=2>probeAssemblyName</FONT></FONT><FONT size=2><FONT color=#000000>&gt;</FONT></DIV><DIV><FONT color=#000000>&lt;/</FONT></FONT><FONT color=#000000><FONT size=2>rdbKey</FONT><FONT size=2>&gt;</DIV></FONT></FONT></DIV><DIV><FONT color=#000000 size=2></FONT>&nbsp;</DIV><DIV><FONT color=#000000 size=2>Notice that it's name is "default"</FONT></DIV><DIV><FONT color=#000000 size=2></FONT>&nbsp;</DIV><DIV><FONT size=2><FONT color=#000000>Then I had a <FONT size=2>IDataSourceKeyResolver like the following:</FONT></FONT></FONT></DIV><DIV><FONT color=#000000 size=2></FONT>&nbsp;</DIV><DIV><FONT color=#000000><FONT size=2>public</FONT><FONT size=2> </FONT><FONT size=2>IDataSourceKey</FONT><FONT size=2> GetKey(</FONT><FONT size=2>string</FONT><FONT size=2> pKeyName, </FONT><FONT size=2>string</FONT></FONT><FONT size=2><FONT color=#000000> pKeyExtension)</FONT></DIV><DIV><FONT color=#000000>{</FONT></DIV><DIV></FONT><FONT size=2><FONT color=#000000>ConnectionStringNew = "<FONT size=2>Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=xxxx;Data Source=xxxx\serverhere</FONT>"</FONT></DIV><DIV></FONT><FONT color=#000000><FONT size=2>return</FONT><FONT size=2> </FONT><FONT size=2>new</FONT><FONT size=2> IdeaBlade.Rdb.</FONT><FONT size=2>RdbKey</FONT><FONT size=2>(</FONT><FONT size=2>"Live"</FONT></FONT><FONT size=2><FONT color=#000000>, ConnectionStringNew);</FONT></DIV><DIV><FONT color=#000000>}</FONT></FONT><FONT size=2></DIV><P></FONT><strong><FONT color=#000066>Because the ibconfig file said "Default" and the </FONT></strong><FONT size=2><strong><FONT color=#000066>IDataSourceKeyResolver said "Live" my SQL identities were not working properly and storing as negative (-) numbers.</FONT></strong></P><DIV><FONT color=#000000></FONT></DIV><DIV><FONT color=#000000>When I changed the resolver to match the config file everything worked fine.</FONT></DIV><DIV><FONT color=#000000></FONT>&nbsp;</DIV><DIV><FONT color=#000000>The hard part to debug this is that I added this line in to the getentities code</FONT></DIV><FONT size=2><P><FONT color=#000000>RdbKey</FONT></FONT><FONT color=#000000><FONT size=2> key = (</FONT><FONT size=2>RdbKey</FONT><FONT size=2>)mPersMgr.DataSourceResolver.GetDataSourceKey(</FONT><FONT size=2>"Employee"</FONT></FONT><FONT size=2><FONT color=#000000>);</FONT></P><DIV><FONT color=#000000></FONT></DIV><DIV><FONT color=#000000>And when I created a watch on the key it would return looking like everything was ok.&nbsp; The dataprovider was set as SQL.</FONT></DIV><DIV><FONT color=#000000></FONT>&nbsp;</DIV><DIV><FONT color=#000000>Just posting this so someone else with this issue won't have to go though the "Fun" I did!</FONT></DIV><DIV><FONT color=#000000></FONT>&nbsp;</DIV><DIV><FONT color=#000000>Thanks</FONT></DIV><DIV><FONT color=#000000></FONT></FONT></FONT>&nbsp;</DIV>]]>
   </description>
   <pubDate>Fri, 18 Apr 2008 16:45:58 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=776&amp;PID=2851#2851</guid>
  </item> 
 </channel>
</rss>