<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" media="screen" href="/styles/xslt/rss.xslt"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:c9="http://channel9.msdn.com">
<channel>
	<title>Channel 9 Forums - Tech Off - DatabaseFactory.CreateDatabase() method</title>
	<atom:link rel="self" type="application/rss+xml" href="http://channel9.msdn.com/Forums/rss"></atom:link>
	<image>
		<url>http://mschnlnine.vo.llnwd.net/d1/Dev/App_Themes/C9/images/feedimage.png</url>
		<title>Channel 9 Forums - Tech Off - DatabaseFactory.CreateDatabase() method</title>
		<link>http://channel9.msdn.com/Forums</link>
	</image>
	<description>Channel 9 keeps you up to date with the latest news and behind the scenes info from Microsoft that developers love to keep up with. From LINQ to SilverLight – Watch videos and hear about all the cool technologies coming and the people behind them.</description>
	<link>http://channel9.msdn.com/Forums</link>
	<language>en</language>
	<pubDate>Sat, 25 May 2013 04:59:10 GMT</pubDate>
	<lastBuildDate>Sat, 25 May 2013 04:59:10 GMT</lastBuildDate>
	<generator>Rev9</generator>
	<c9:totalResults>5</c9:totalResults>
	<c9:pageCount>-5</c9:pageCount>
	<c9:pageSize>-1</c9:pageSize>
	<item>
		<title>Tech Off - DatabaseFactory.CreateDatabase() method</title>
		<description><![CDATA[<p>I have a very simple program where I am taking an&nbsp;XML feed from a DB and writing it to a file.&nbsp;&nbsp;I am using the Enterprise Library to create the DB connection and everything is candy and roses.&nbsp;<br>
<br>
However, I have been asked to give the users the ability to define the DB through one of the arguements passed in as the connection string and that is&nbsp;where I run into this problem.&nbsp;<br>
<br>
When I try to use the 0 argument&nbsp;method&nbsp;(DatabaseFactory.CreateDatabase()) instead of one where I pass in the name of my Database (DatabaseFactory.CreateDatabase(&quot;MyDBName&quot;)), which is defined in my App.config&nbsp;file, the method call throws an exception&nbsp;with
 the message &quot;<font size="2">The value can not be null or an empty string.</font>&quot;<br>
<br>
It seems to me that I&nbsp;should be able to call this method to create a Database object and then set its properties afterwards, and in fact it was suggested that I do this by two people I respect as knowledgeable individuals, but for some reason I am unable to
 do so.&nbsp;&nbsp;<br>
<br>
I assume this is just some type of configuration issue with&nbsp;my App.config file but a dozen Google searches have turned up nadda.&nbsp; Has anyone out there run into this type of issue before?&nbsp;&nbsp;</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/190182-DatabaseFactoryCreateDatabase-method/190182#190182</link>
		<pubDate>Fri, 19 May 2006 14:27:11 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/190182-DatabaseFactoryCreateDatabase-method/190182#190182</guid>
		<dc:creator>MadTurtle</dc:creator>
		<slash:comments>5</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/MadTurtle/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - DatabaseFactory.CreateDatabase() method</title>
		<description><![CDATA[<p>Is it possible to use a generic database name and just change the connection string in the app.config programmatically? Just a thought.</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/190182-DatabaseFactoryCreateDatabase-method/b8606918b5974c3687d79dea013eed62#b8606918b5974c3687d79dea013eed62</link>
		<pubDate>Fri, 19 May 2006 17:09:30 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/190182-DatabaseFactoryCreateDatabase-method/b8606918b5974c3687d79dea013eed62#b8606918b5974c3687d79dea013eed62</guid>
		<dc:creator>LiquidSpy</dc:creator>
		<slash:comments>5</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/LiquidSpy/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - DatabaseFactory.CreateDatabase() method</title>
		<description><![CDATA[<p><blockquote>
<div class="quoteAuthor">MadTurtle wrote:</div>
<div class="quoteBody">&#65279;I have a very simple program where I am taking an&nbsp;XML feed from a DB and writing it to a file.&nbsp;&nbsp;I am using the Enterprise Library to create the DB connection and everything is candy and roses.&nbsp;<br>
<br>
However, I have been asked to give the users the ability to define the DB through one of the arguements passed in as the connection string and that is&nbsp;where I run into this problem.&nbsp;<br>
<br>
When I try to use the 0 argument&nbsp;method&nbsp;(DatabaseFactory.CreateDatabase()) instead of one where I pass in the name of my Database (DatabaseFactory.CreateDatabase(&quot;MyDBName&quot;)), which is defined in my App.config&nbsp;file, the method call throws an exception&nbsp;with
 the message &quot;<font size="2">The value can not be null or an empty string.</font>&quot;<br>
<br>
It seems to me that I&nbsp;should be able to call this method to create a Database object and then set its properties afterwards, and in fact it was suggested that I do this by two people I respect as knowledgeable individuals, but for some reason I am unable to
 do so.&nbsp;&nbsp;<br>
<br>
I assume this is just some type of configuration issue with&nbsp;my App.config file but a dozen Google searches have turned up nadda.&nbsp; Has anyone out there run into this type of issue before?&nbsp;&nbsp;</div>
</blockquote>
<br>
<br>
Turtle,<br>
<br>
Make sure that you use the Configuarion Tool that ships with Enterprise Library to define your default connection. The markup this puts in the config file is different than you would normally use, and I don't think the database section of Enterprise Library
 can find it without that markup.<br>
<br>
Good luck!</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/190182-DatabaseFactoryCreateDatabase-method/518446958c324a35b4969dea013eeda8#518446958c324a35b4969dea013eeda8</link>
		<pubDate>Fri, 19 May 2006 18:05:19 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/190182-DatabaseFactoryCreateDatabase-method/518446958c324a35b4969dea013eeda8#518446958c324a35b4969dea013eeda8</guid>
		<dc:creator>jb43081</dc:creator>
		<slash:comments>5</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/jb43081/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - DatabaseFactory.CreateDatabase() method</title>
		<description><![CDATA[<p><blockquote>
<div class="quoteAuthor">LiquidSpy wrote:</div>
<div class="quoteBody">&#65279;Is it possible to use a generic database name and just change the connection string in the app.config programmatically? Just a thought.</div>
</blockquote>
<br>
<br>
At one point I tried this as a possible solution but received the message that the attribute was readonly.&nbsp; I did not spend a great deal of time trying to get this to work though so if you have an example of how to modify the connectionString attribute of the
 app.config file I would be happy to give it a shot.</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/190182-DatabaseFactoryCreateDatabase-method/52d06ea09a2f413295999dea013eedd1#52d06ea09a2f413295999dea013eedd1</link>
		<pubDate>Fri, 19 May 2006 18:20:48 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/190182-DatabaseFactoryCreateDatabase-method/52d06ea09a2f413295999dea013eedd1#52d06ea09a2f413295999dea013eedd1</guid>
		<dc:creator>MadTurtle</dc:creator>
		<slash:comments>5</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/MadTurtle/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - DatabaseFactory.CreateDatabase() method</title>
		<description><![CDATA[<p><blockquote>
<div class="quoteAuthor">jb43081 wrote:</div>
<div class="quoteBody">Turtle,<br>
<br>
Make sure that you use the Configuarion Tool that ships with Enterprise Library to define your default connection. The markup this puts in the config file is different than you would normally use, and I don't think the database section of Enterprise Library
 can find it without that markup.<br>
<br>
Good luck!</div>
</blockquote>
<br>
<br>
jb43081, <br>
<br>
I am looking into this now but it should be noted that when I use the DatabaseFactory.CreateDatabase() method with the 'default' name passed it is able to create a database object without error.&nbsp; It is only when I use the 0 argument method that it has problems.&nbsp;
 I will Google the Config Manager and see if that offers any solutions.&nbsp; <br>
<br>
Thanks,<br>
<br>
MadTurtle</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/190182-DatabaseFactoryCreateDatabase-method/d7422ec0587c403696be9dea013eedfc#d7422ec0587c403696be9dea013eedfc</link>
		<pubDate>Fri, 19 May 2006 18:26:33 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/190182-DatabaseFactoryCreateDatabase-method/d7422ec0587c403696be9dea013eedfc#d7422ec0587c403696be9dea013eedfc</guid>
		<dc:creator>MadTurtle</dc:creator>
		<slash:comments>5</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/MadTurtle/Discussions/RSS</wfw:commentRss>
	</item>
</channel>
</rss>