<?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 : sqlbulkcopy connection string</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : sqlbulkcopy connection string</description>
  <pubDate>Tue, 12 May 2026 22:39:35 -700</pubDate>
  <lastBuildDate>Fri, 16 Aug 2013 17:10: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=4277</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>sqlbulkcopy connection string : You can access the application...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=4277&amp;PID=16742#16742</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=449" rel="nofollow">smi-mark</a><br /><strong>Subject:</strong> 4277<br /><strong>Posted:</strong> 16-Aug-2013 at 5:10pm<br /><br />You can access the application properties and populate an EntityConnectionStringBuilder and access the ConnectionString property or you can instantiate an EntityManager and use this useful extension method I wrote.<br><br><br><table width="99%"><tr><td class="BBquote"><br>&nbsp;&nbsp;&nbsp; public static class EntityManagerFns<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public static string GetConnectionString(this EntityManager entityManager, string keyName)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var resolver = entityManager.DataSourceResolver.ProbedKeyResolver;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var key = (ClientEdmKey)resolver.GetKey(keyName, string.Empty, true);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return key.ConnectionString;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; }<br></td></tr></table><br><br>You can then call Manager.GetConnectionString("WhateverEntities"); <br><br>We use CodeFirst exclusively now, so I can't remember if the connection string returned will be an EF string or the raw SQL string. <br>]]>
   </description>
   <pubDate>Fri, 16 Aug 2013 17:10:07 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=4277&amp;PID=16742#16742</guid>
  </item> 
  <item>
   <title>sqlbulkcopy connection string : For doing an import on a large...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=4277&amp;PID=16740#16740</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=2211" rel="nofollow">BigA25</a><br /><strong>Subject:</strong> 4277<br /><strong>Posted:</strong> 16-Aug-2013 at 3:20pm<br /><br />For doing an import on a large number of rows (excel file) I decided to use sqlbulkcopy to have good performance.<div>The problem is that this requires a direct link to the database through a connection string.&nbsp;</div><div><br></div><div>Is there a way to get this connection string from ideablade anywhere?</div>]]>
   </description>
   <pubDate>Fri, 16 Aug 2013 15:20:10 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=4277&amp;PID=16740#16740</guid>
  </item> 
 </channel>
</rss>