<?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 : IDataSourceKeyResolver</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : IDataSourceKeyResolver</description>
  <pubDate>Mon, 13 Apr 2026 14:55:51 -700</pubDate>
  <lastBuildDate>Wed, 01 Aug 2012 09:08:40 -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=3558</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>IDataSourceKeyResolver :   I was thinking about a set...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3558&amp;PID=14127#14127</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=892" rel="nofollow">sbelini</a><br /><strong>Subject:</strong> 3558<br /><strong>Posted:</strong> 01-Aug-2012 at 9:08am<br /><br />I was thinking about a set of predefined connections rather than new ones coming up dinamically.<div>&nbsp;</div><div>I'll add this to our feature request list.</div><div>&nbsp;</div><div>Silvio.</div>]]>
   </description>
   <pubDate>Wed, 01 Aug 2012 09:08:40 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3558&amp;PID=14127#14127</guid>
  </item> 
  <item>
   <title>IDataSourceKeyResolver : Yeah, the DataSourceExtension...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3558&amp;PID=14122#14122</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1005" rel="nofollow">mgood</a><br /><strong>Subject:</strong> 3558<br /><strong>Posted:</strong> 31-Jul-2012 at 9:09pm<br /><br />Yeah, the DataSourceExtension is not the way to go. Out of curiosity, how often does an admin change the connection string and why? It seems for such a low level configuration change a server restart is perfectly acceptable. You can appreciate that bad things will happen if you change the connection string without forcing all the clients to shut down and evict any data from the old database. In your environment it sounds like you take care of that, but not everybody can be trusted to do this.&nbsp;<div><br></div><div>Perhaps, you can call a server-side method that&nbsp;<span style="text-align: left; : rgb251, 251, 253; ">programmatically</span>&nbsp;restarts the app pool after changing of the configuration string.&nbsp;</div>]]>
   </description>
   <pubDate>Tue, 31 Jul 2012 21:09:23 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3558&amp;PID=14122#14122</guid>
  </item> 
  <item>
   <title>IDataSourceKeyResolver : Hi Silvio,But i believe that mgood&amp;#039;s...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3558&amp;PID=14121#14121</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1228" rel="nofollow">Vonzkie</a><br /><strong>Subject:</strong> 3558<br /><strong>Posted:</strong> 31-Jul-2012 at 8:47pm<br /><br /><div>Hi Silvio,</div><div><br></div>But i believe that mgood's suggestion is static and our connection is dynamic based on the data on the database.<div>I hope you can consider this, perhaps not by now but on your next release because we don't want to restart the IIS just to release the connection used.</div><div><br></div><div>Thanks,</div><div>Von</div>]]>
   </description>
   <pubDate>Tue, 31 Jul 2012 20:47:50 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3558&amp;PID=14121#14121</guid>
  </item> 
  <item>
   <title>IDataSourceKeyResolver :   Hi Von,Unfortunatelly, this...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3558&amp;PID=14114#14114</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=892" rel="nofollow">sbelini</a><br /><strong>Subject:</strong> 3558<br /><strong>Posted:</strong> 31-Jul-2012 at 9:38am<br /><br />Hi Von,<div>&nbsp;</div><div>Unfortunatelly, this is not a feature provided by DevForce at this time. (i.e. there's no way to way programmatically release the connection so to define a new one)</div><div>&nbsp;</div><div>Mgood's suggestion&nbsp;on using DataSourceExtension&nbsp;would be your best bet in this case.</div><div>&nbsp;</div><div>Kind regards,</div><div>&nbsp;&nbsp; Silvio.</div>]]>
   </description>
   <pubDate>Tue, 31 Jul 2012 09:38:23 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3558&amp;PID=14114#14114</guid>
  </item> 
  <item>
   <title>IDataSourceKeyResolver : To add on this, disregard the...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3558&amp;PID=14109#14109</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1228" rel="nofollow">Vonzkie</a><br /><strong>Subject:</strong> 3558<br /><strong>Posted:</strong> 30-Jul-2012 at 8:28pm<br /><br />To add on this, disregard the Tank Management Connection to avoid confusion..<div><br></div><div>Example in Global Connection, it points to a server instance of 192.168.0.31\Sql2005, database of iRelySuite.</div><div><br></div><div>If the administrator changed it to instance of 192.168.0.32\sql2005 or any other instance, we want to force the EntityServer to withdraw the last connection and change it to the new one.</div><div><br></div><div>Thanks,</div><div>Von</div>]]>
   </description>
   <pubDate>Mon, 30 Jul 2012 20:28:55 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3558&amp;PID=14109#14109</guid>
  </item> 
  <item>
   <title>IDataSourceKeyResolver : Consider the image below:We have...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3558&amp;PID=14108#14108</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1228" rel="nofollow">Vonzkie</a><br /><strong>Subject:</strong> 3558<br /><strong>Posted:</strong> 30-Jul-2012 at 7:43pm<br /><br /><div>Consider the image below:</div><div><br></div><div>We have an administrative site where we configure the database connection, and we use the IDatasourceKeyResolver to get the details from the database of this site.</div><div><br></div><div>The problem is that when we changed the database connection in any case we need to, it will not get the latest connection because the IDatasourceKeyResolver is not firing anymore.</div><div><br></div><div>Now, we do not need to change the database connection while the application is running (we will force users to exit the application), what we need to do is a way to flush out the last connection and use the new one and we need a programmatic way to do that.</div><div><br></div><div>Btw, the actual application is a Windows Form application.</div><div><br></div><img src="uploads/1228/ForDevforce.png" height="670" width="1915" border="0" />]]>
   </description>
   <pubDate>Mon, 30 Jul 2012 19:43:09 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3558&amp;PID=14108#14108</guid>
  </item> 
  <item>
   <title>IDataSourceKeyResolver : I&amp;#039;m curious about what you...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3558&amp;PID=14107#14107</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1005" rel="nofollow">mgood</a><br /><strong>Subject:</strong> 3558<br /><strong>Posted:</strong> 30-Jul-2012 at 1:19pm<br /><br />I'm curious about what you are trying to do. IDataSourceKeyResolver is intended to let you externalize the connection strings instead of hard coding them in the web.config. It's not intended to dynamically change the connection strings to let the user connect to a different DB. The purpose of IDataSourceKeyResolver is so that you can move your code from your dev servers to the test servers to the production servers and have the connection information external to the code. Your connection strings will normally stay the same for each environment unless you move or rename servers. <BR>&nbsp;<BR>If you need the ability to dynamically connect to different DBs at runtime, you use the DataSourceExtension for that. Perhaps this thread over in the Cocktail forum applies to what you are trying to do.<BR><DIV>&nbsp;</DIV><DIV><a href="http://www.ideablade.com/forum/forum_posts.asp?TID=3449&amp;title=manual-custom-c&#111;nnecti&#111;n-without-having-to-leave-the-applicati&#111;n" target="_blank">http://www.ideablade.com/forum/forum_posts.asp?TID=3449&amp;title=manual-custom-connection-without-having-to-leave-the-application</A></DIV><span style="font-size:10px"><br /><br />Edited by mgood - 30-Jul-2012 at 1:24pm</span>]]>
   </description>
   <pubDate>Mon, 30 Jul 2012 13:19:06 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3558&amp;PID=14107#14107</guid>
  </item> 
  <item>
   <title>IDataSourceKeyResolver : Hi,We are implementing IDataSourceKeyResolver...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3558&amp;PID=14102#14102</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1228" rel="nofollow">Vonzkie</a><br /><strong>Subject:</strong> 3558<br /><strong>Posted:</strong> 30-Jul-2012 at 12:55am<br /><br />Hi,<div><br></div><div>We are implementing IDataSourceKeyResolver in our code to dynamically set our connection strings.</div><div>All is working fine but we need a way to force the server to fire this IDataSourceKeyResolver again if we want to because currently, once &nbsp;the connection has been set, we will wait until it releases the connection used or alternatively by restarting the IIS.. We need a way to programmatically release the connection used by the EntityManager.</div><div><br></div><div>Thanks,</div><div>Von</div>]]>
   </description>
   <pubDate>Mon, 30 Jul 2012 00:55:27 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3558&amp;PID=14102#14102</guid>
  </item> 
 </channel>
</rss>