<?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 - Where do you store single pieces of information?</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 - Where do you store single pieces of information?</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>Mon, 20 May 2013 00:35:33 GMT</pubDate>
	<lastBuildDate>Mon, 20 May 2013 00:35:33 GMT</lastBuildDate>
	<generator>Rev9</generator>
	<c9:totalResults>18</c9:totalResults>
	<c9:pageCount>-18</c9:pageCount>
	<c9:pageSize>-1</c9:pageSize>
	<item>
		<title>Tech Off - Where do you store single pieces of information?</title>
		<description><![CDATA[<p>If&nbsp;I have a single&nbsp;piece of information that can change, but where only one will ever be needed, where do I store it? Do I create a&nbsp;database table that will only hold one row? Is there a better way?</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/261873-Where-do-you-store-single-pieces-of-information/261873#261873</link>
		<pubDate>Thu, 27 Mar 2008 04:27:42 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/261873-Where-do-you-store-single-pieces-of-information/261873#261873</guid>
		<dc:creator>Sven Groot</dc:creator>
		<slash:comments>18</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/Sven Groot/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - Where do you store single pieces of information?</title>
		<description><![CDATA[<p>umm,... configuration file? App.config or Web.config can do the job, I think. Or, you can use plain file and have it watched by using FileSystemWatcher. Or,... registry?</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/261873-Where-do-you-store-single-pieces-of-information/fbdef995da704522abfc9dfa00c27e9b#fbdef995da704522abfc9dfa00c27e9b</link>
		<pubDate>Thu, 27 Mar 2008 05:37:55 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/261873-Where-do-you-store-single-pieces-of-information/fbdef995da704522abfc9dfa00c27e9b#fbdef995da704522abfc9dfa00c27e9b</guid>
		<dc:creator>punkouter</dc:creator>
		<slash:comments>18</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/punkouter/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - Where do you store single pieces of information?</title>
		<description><![CDATA[<p>Like punkouter said, a configuration file is a good option. If you want to store it in your database, you can also do that. I developed a basic layout for our database system that contains some default tables, views, stored procedures and functions that
 we apply to each of our databases. Before designing a new database, we first run a SQL script that creates these objects. One of the default tables is _ExtendedProperties, which is used to store single pieces of information. It has 2 fields: Key (NVARCHAR(MAX))
 and Value (NVARCHAR(MAX)) and it's basically a dictionary. Of course it only contains string values, but that's usually OK. It is not used very often, but it is handy for cases like yours, where you want to store loose values.</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/261873-Where-do-you-store-single-pieces-of-information/31b05f62a32643e7b2fa9dfa00c27f2f#31b05f62a32643e7b2fa9dfa00c27f2f</link>
		<pubDate>Thu, 27 Mar 2008 06:35:49 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/261873-Where-do-you-store-single-pieces-of-information/31b05f62a32643e7b2fa9dfa00c27f2f#31b05f62a32643e7b2fa9dfa00c27f2f</guid>
		<dc:creator>Tommy Carlier</dc:creator>
		<slash:comments>18</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/TommyCarlier/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - Where do you store single pieces of information?</title>
		<description><![CDATA[<p>Just to be a little more specific,&nbsp;it's just some text displayed on a single page of a website that the site owners&nbsp;will be able to&nbsp;change via the admin interface (it's actually two pieces of text: the version as the user input it and the html formatted
 version).<br /><br />That rules out web.config because I don't want to change that from code (has some nasty side-effects like resetting the application). I could use a flat file though. Such an ExtendedProperties table might be an idea, but the only thing it'd hold for the foreseeable
 future would be that piece of text.</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/261873-Where-do-you-store-single-pieces-of-information/dea39bddfc2542db87269dfa00c27fa9#dea39bddfc2542db87269dfa00c27fa9</link>
		<pubDate>Thu, 27 Mar 2008 07:11:46 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/261873-Where-do-you-store-single-pieces-of-information/dea39bddfc2542db87269dfa00c27fa9#dea39bddfc2542db87269dfa00c27fa9</guid>
		<dc:creator>Sven Groot</dc:creator>
		<slash:comments>18</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/Sven Groot/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - Where do you store single pieces of information?</title>
		<description><![CDATA[<p>Why not create an object of this textual data, and serialize/deserialize it to an xml file? You could be messy and save it in 'viewstate' or a 'session' object, I'd stick with .xml, it's the .NET way.<br /></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/261873-Where-do-you-store-single-pieces-of-information/93267ce4a79b453f93569dfa00c2803f#93267ce4a79b453f93569dfa00c2803f</link>
		<pubDate>Thu, 27 Mar 2008 07:27:15 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/261873-Where-do-you-store-single-pieces-of-information/93267ce4a79b453f93569dfa00c2803f#93267ce4a79b453f93569dfa00c2803f</guid>
		<dc:creator>Vesuvius</dc:creator>
		<slash:comments>18</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/vesuvius/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - Where do you store single pieces of information?</title>
		<description><![CDATA[<p>Even if it holds just 1 record, it's not a waste. Most of our databases usually have only 1 record in _ExtendedProperties. The main advantage (for us) is uniformity. We have this basic database layout, we have a .NET library for data access, which has
 a Database-class, which has methods like GetExtendedProperty and SetExtendedProperty that makes it really easy to store and retrieve single pieces of data from .NET code.</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/261873-Where-do-you-store-single-pieces-of-information/45434759315d4d61b7329dfa00c280b9#45434759315d4d61b7329dfa00c280b9</link>
		<pubDate>Thu, 27 Mar 2008 07:28:41 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/261873-Where-do-you-store-single-pieces-of-information/45434759315d4d61b7329dfa00c280b9#45434759315d4d61b7329dfa00c280b9</guid>
		<dc:creator>Tommy Carlier</dc:creator>
		<slash:comments>18</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/TommyCarlier/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - Where do you store single pieces of information?</title>
		<description><![CDATA[<p>Another consideration I'd say is to think about 'data packaging' splitting data up can be a nightmare for keeping applications portable and scalable.</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/261873-Where-do-you-store-single-pieces-of-information/31e3c33d2c8644be8c339dfa00c2812f#31e3c33d2c8644be8c339dfa00c2812f</link>
		<pubDate>Thu, 27 Mar 2008 07:46:06 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/261873-Where-do-you-store-single-pieces-of-information/31e3c33d2c8644be8c339dfa00c2812f#31e3c33d2c8644be8c339dfa00c2812f</guid>
		<dc:creator>stevo_</dc:creator>
		<slash:comments>18</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/stevo_/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - Where do you store single pieces of information?</title>
		<description><![CDATA[<p>My approach would be to stick only the original version as the user entered it in a flat file, and stick the HTML-encodified version in the Application object.<br /><br />Also, of course, in the Application_OnLoad event, I would read the file, HTML-encode it, and stick the result in the Application object.<br /><br />On the other hand, if I had any suspicion that I would get a call that &quot;I accidentally changed the text and I want to put it back to what it was&quot;, I would use a wiki-style data record (so that changes were kept in perpetuity.)<br /></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/261873-Where-do-you-store-single-pieces-of-information/54cc986d85874690941c9dfa00c2816c#54cc986d85874690941c9dfa00c2816c</link>
		<pubDate>Thu, 27 Mar 2008 08:07:10 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/261873-Where-do-you-store-single-pieces-of-information/54cc986d85874690941c9dfa00c2816c#54cc986d85874690941c9dfa00c2816c</guid>
		<dc:creator>Matthew van Eerde</dc:creator>
		<slash:comments>18</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/Matthew van Eerde/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - Where do you store single pieces of information?</title>
		<description><![CDATA[<p><blockquote>
<div class="quoteAuthor">Sven Groot wrote:</div>
<div class="quoteBody">&#65279;Just to be a little more specific,&nbsp;it's just some text displayed on a single page of a website that the site owners&nbsp;will be able to&nbsp;change via the admin interface (it's actually two pieces of text: the version as the user input it and
 the html formatted version).<br /><br />That rules out web.config because I don't want to change that from code (has some nasty side-effects like resetting the application). I could use a flat file though. Such an ExtendedProperties table might be an idea, but the only thing it'd hold for the foreseeable
 future would be that piece of text.</div>
</blockquote>
<br /><br />database is the way to go sven. <br /><br />you can use the ProfileProvider you can use the SetPropertyValues to insert any kind of properties you want the user to have. the data then will get serialized into a field in the profile table in the database and you dont even have to create a table for&nbsp;the
 text. you can even extend the profile provider to match your needs.</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/261873-Where-do-you-store-single-pieces-of-information/67d76f7f4ed14b4db9b49dfa00c28203#67d76f7f4ed14b4db9b49dfa00c28203</link>
		<pubDate>Thu, 27 Mar 2008 08:20:41 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/261873-Where-do-you-store-single-pieces-of-information/67d76f7f4ed14b4db9b49dfa00c28203#67d76f7f4ed14b4db9b49dfa00c28203</guid>
		<dc:creator>punkouter</dc:creator>
		<slash:comments>18</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/punkouter/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - Where do you store single pieces of information?</title>
		<description><![CDATA[<p>This is the problem with programming. So may different ways to do the same thing (how many ways to skin a cat?). Most of them are right, some are ineloquent.
<br /><br />We are all vying for our technique but most of the suggestions are right. <br />Just do what feels right (Oh I meant the application object [Matt], been a year since I did any ASP.NET).<br /></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/261873-Where-do-you-store-single-pieces-of-information/74eca56bdcee4e75b9169dfa00c28280#74eca56bdcee4e75b9169dfa00c28280</link>
		<pubDate>Thu, 27 Mar 2008 08:39:15 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/261873-Where-do-you-store-single-pieces-of-information/74eca56bdcee4e75b9169dfa00c28280#74eca56bdcee4e75b9169dfa00c28280</guid>
		<dc:creator>Vesuvius</dc:creator>
		<slash:comments>18</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/vesuvius/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - Where do you store single pieces of information?</title>
		<description><![CDATA[<p><blockquote>
<div class="quoteAuthor">punkouter wrote:</div>
<div class="quoteBody">&#65279;
<blockquote>
<table class="quoteTable">
<tbody>
<tr>
<td valign="top" width="10"><img src="/Themes/AlmostGlass/images/icon-quote.gif"></td>
<td class="txt3"><strong>Sven Groot wrote:</strong>
<hr size="1">
<i>&#65279;Just to be a little more specific,&nbsp;it's just some text displayed on a single page of a website that the site owners&nbsp;will be able to&nbsp;change via the admin interface (it's actually two pieces of text: the version as the user input it and the html formatted
 version).<br /><br />That rules out web.config because I don't want to change that from code (has some nasty side-effects like resetting the application). I could use a flat file though. Such an ExtendedProperties table might be an idea, but the only thing it'd hold for the foreseeable
 future would be that piece of text.</i></td>
</tr>
</tbody>
</table>
</blockquote>
<br /><br />database is the way to go sven. <br /><br />you can use the ProfileProvider you can use the SetPropertyValues to insert any kind of properties you want the user to have. the data then will get serialized into a field in the profile table in the database and you dont even have to create a table for&nbsp;the
 text. you can even extend the profile provider to match your needs.</div>
</blockquote>
<br />There are no profiles or users or whatever, so that'd be complete overkill as I'd need to set up the whole ASP.NET profile stuff in the database just to get that working.</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/261873-Where-do-you-store-single-pieces-of-information/b16664cd785d4c47a6549dfa00c2830b#b16664cd785d4c47a6549dfa00c2830b</link>
		<pubDate>Thu, 27 Mar 2008 08:43:46 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/261873-Where-do-you-store-single-pieces-of-information/b16664cd785d4c47a6549dfa00c2830b#b16664cd785d4c47a6549dfa00c2830b</guid>
		<dc:creator>Sven Groot</dc:creator>
		<slash:comments>18</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/Sven Groot/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - Where do you store single pieces of information?</title>
		<description><![CDATA[<p>Linq to XML in the App_Data folder.<br />You will hardly believe how fast it is. <img src='http://ecn.channel9.msdn.com/o9/content/images/emoticons/emotion-1.gif' alt='Smiley' /></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/261873-Where-do-you-store-single-pieces-of-information/3c965dd703274bce9bf29dfa00c28385#3c965dd703274bce9bf29dfa00c28385</link>
		<pubDate>Thu, 27 Mar 2008 12:03:11 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/261873-Where-do-you-store-single-pieces-of-information/3c965dd703274bce9bf29dfa00c28385#3c965dd703274bce9bf29dfa00c28385</guid>
		<dc:creator>Mark Wisecarver</dc:creator>
		<slash:comments>18</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/wisemx/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - Where do you store single pieces of information?</title>
		<description><![CDATA[<p><blockquote>
<div class="quoteAuthor">wisemx wrote:</div>
<div class="quoteBody">&#65279;Linq to XML in the App_Data folder.<br />You will hardly believe how fast it is. <img src='http://ecn.channel9.msdn.com/o9/content/images/emoticons/emotion-1.gif' alt='Smiley' /></div>
</blockquote>
<br />Unfortunately I don't have .Net 3.5 on that server. <img src='http://ecn.channel9.msdn.com/o9/content/images/emoticons/emotion-6.gif' alt='Sad' /></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/261873-Where-do-you-store-single-pieces-of-information/fa55db94668e4d1c92959dfa00c283ca#fa55db94668e4d1c92959dfa00c283ca</link>
		<pubDate>Thu, 27 Mar 2008 13:03:02 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/261873-Where-do-you-store-single-pieces-of-information/fa55db94668e4d1c92959dfa00c283ca#fa55db94668e4d1c92959dfa00c283ca</guid>
		<dc:creator>Sven Groot</dc:creator>
		<slash:comments>18</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/Sven Groot/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - Where do you store single pieces of information?</title>
		<description><![CDATA[<p>If it's just some text, the simplest solution would probably be to use a simple text-file. Putting it in App_Data is probably a good idea. And File.ReadAllText(path) and File.WriteAllText(path, text) make it very easy to read and write the text.</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/261873-Where-do-you-store-single-pieces-of-information/cae2d399f70d4a7caa2e9dfa00c28467#cae2d399f70d4a7caa2e9dfa00c28467</link>
		<pubDate>Thu, 27 Mar 2008 15:41:18 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/261873-Where-do-you-store-single-pieces-of-information/cae2d399f70d4a7caa2e9dfa00c28467#cae2d399f70d4a7caa2e9dfa00c28467</guid>
		<dc:creator>Tommy Carlier</dc:creator>
		<slash:comments>18</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/TommyCarlier/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - Where do you store single pieces of information?</title>
		<description><![CDATA[<p>I'm exploring this scenario:<br /><br /><u>web.config</u><br /><br />&lt;configuration&gt;<br />&nbsp;&nbsp;&nbsp; &lt;appSettings file=&quot;external.config&quot;&gt;<br />&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &lt;add key=&quot;[required key]&quot; value=&quot;[value]&quot; /&gt;<br />&nbsp;&nbsp;&nbsp; &lt;/appSettings&gt;<br />&lt;/configuration&gt;<br /><br /><br /><u>external.config</u><br /><br />&lt;appSettings&gt;<br />&nbsp;&nbsp;&nbsp; &lt;add key=&quot;[changeable key]&quot; value=&quot;[changeable value] /&gt;<br />&lt;/appSettings&gt;<br /><br /><br />Then have a function where the user can OVERWRITE external.config. Probably won't work for all setups, but it won't require a DB.<br /><br />But if I had a DB, I'd go w/ that.<br /><br />Also, I'm seeing that changing external.config doesn't trigger an app restart if you were to change web.config.<br /></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/261873-Where-do-you-store-single-pieces-of-information/b5f1d0cdc1864fd58a899dfa00c284f9#b5f1d0cdc1864fd58a899dfa00c284f9</link>
		<pubDate>Thu, 27 Mar 2008 15:49:25 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/261873-Where-do-you-store-single-pieces-of-information/b5f1d0cdc1864fd58a899dfa00c284f9#b5f1d0cdc1864fd58a899dfa00c284f9</guid>
		<dc:creator>Minh</dc:creator>
		<slash:comments>18</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/Minh/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - Where do you store single pieces of information?</title>
		<description><![CDATA[<p>Wow, I just recently ran into that question. I was trying to have a little announcement appear on the main page of a site, letting the admins control what the text would be. I didn't want to create an entire table just to store that info, nor did I want
 to bother with text. <br /><br />In the end, I just used an Application object. But if that's not good for some reason, I too would like some advice on better methods.</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/261873-Where-do-you-store-single-pieces-of-information/5d80c847eb524146a3ee9dfa00c28536#5d80c847eb524146a3ee9dfa00c28536</link>
		<pubDate>Thu, 27 Mar 2008 16:27:58 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/261873-Where-do-you-store-single-pieces-of-information/5d80c847eb524146a3ee9dfa00c28536#5d80c847eb524146a3ee9dfa00c28536</guid>
		<dc:creator>mVPstar</dc:creator>
		<slash:comments>18</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/mVPstar/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - Where do you store single pieces of information?</title>
		<description><![CDATA[<p>Disclaimer: didn't read the whole thread but want to answer to Sven's original question.<br /><br />I usally store this stuff into the database (single row) if it is the same for ALL users who use the system - independent on which PC they sign in. Otherwise it's going directly to the config file.<br /><br />For ASP.NET I usually use the config file too because it's also the same for all the visitors.</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/261873-Where-do-you-store-single-pieces-of-information/34447cdaf13a4581a52c9dfa00c285ba#34447cdaf13a4581a52c9dfa00c285ba</link>
		<pubDate>Thu, 27 Mar 2008 17:25:05 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/261873-Where-do-you-store-single-pieces-of-information/34447cdaf13a4581a52c9dfa00c285ba#34447cdaf13a4581a52c9dfa00c285ba</guid>
		<dc:creator>Christian Liensberger</dc:creator>
		<slash:comments>18</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/littleguru/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - Where do you store single pieces of information?</title>
		<description><![CDATA[<p>In the past I've had to do some things like this for small client sites. I wanted to give them the ability to change &quot;the front page paragraph&quot;, &quot;the about us column&quot;, and &quot;our slogans on different pages.&quot;<br /><br />Of course I wouldn't learn of this until things were pretty much finished being developed, so I went with a simple two-column table:<br /><br />location<br />text<br /><br />Examples:<br /><br />frontPageParagraph | Hello World<br />aboutUsColumn | Hello World Again<br />totalMembers | 2878<br />websiteCreatedDate | 2008-01-01<br /><br />That way I could simply &quot;SELECT text FROM oneLiners WHERE location = 'frontPageParagraph'&quot;.<br /><br />Again, probably not very elegant, but it worked. Like a previous niner said too, any solution of this type won't give you history, so you could simply toss in an isActive field of type bool, and rather than updating the text field, just insert a new record
 and give it the exclusive isActive value of True.<br /><br />Then it's merely &quot;SELECT text FROM oneLiners WHERE (location = 'frontPageParagraph') AND (isActive = true)&quot;<br /><br />Take it with a grain of salt <img src='http://ecn.channel9.msdn.com/o9/content/images/emoticons/emotion-1.gif' alt='Smiley' /><br /></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/261873-Where-do-you-store-single-pieces-of-information/87db9c0bbf3a49ab97069dfa00c2864c#87db9c0bbf3a49ab97069dfa00c2864c</link>
		<pubDate>Thu, 27 Mar 2008 20:29:59 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/261873-Where-do-you-store-single-pieces-of-information/87db9c0bbf3a49ab97069dfa00c2864c#87db9c0bbf3a49ab97069dfa00c2864c</guid>
		<dc:creator>jsampsonPC</dc:creator>
		<slash:comments>18</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/jsampsonPC/Discussions/RSS</wfw:commentRss>
	</item>
</channel>
</rss>