<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Tech.It.2.Me-&#62;{By.Anton.Perez} &#187; Database</title>
	<atom:link href="http://antonperez.com/category/database/feed/" rel="self" type="application/rss+xml" />
	<link>http://antonperez.com</link>
	<description>Technical satisfaction guaranteed...</description>
	<lastBuildDate>Fri, 28 Oct 2011 23:48:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>StumbleUpon database failure error</title>
		<link>http://antonperez.com/2008/08/12/stumbleupon-database-failure-error/</link>
		<comments>http://antonperez.com/2008/08/12/stumbleupon-database-failure-error/#comments</comments>
		<pubDate>Tue, 12 Aug 2008 20:54:10 +0000</pubDate>
		<dc:creator>anton</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[Entertainment]]></category>

		<guid isPermaLink="false">http://antonperez.com/2008/08/12/stumbleupon-database-failure-error/</guid>
		<description><![CDATA[It seems StumbleUpon has recently been getting the &#8220;slashdot&#8221; effect: What&#8217;s with the username-password info?&#160; And the ton of arrays?]]></description>
			<content:encoded><![CDATA[<p>It seems <a href="http://www.stumbleupon.com/">StumbleUpon</a> has recently been getting the &#8220;slashdot&#8221; effect:</p>
<p><a href="http://antonperez.com/wp-content/uploads/2008/08/image8.png"><img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="195" alt="image" src="http://antonperez.com/wp-content/uploads/2008/08/image-thumb7.png" width="244" border="0"></a> </p>
<p>What&#8217;s with the username-password info?&nbsp; And the ton of arrays?</p>
]]></content:encoded>
			<wfw:commentRss>http://antonperez.com/2008/08/12/stumbleupon-database-failure-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Microsoft virtual launch</title>
		<link>http://antonperez.com/2008/02/27/microsoft-virtual-launch/</link>
		<comments>http://antonperez.com/2008/02/27/microsoft-virtual-launch/#comments</comments>
		<pubDate>Wed, 27 Feb 2008 04:09:53 +0000</pubDate>
		<dc:creator>anton</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[News]]></category>

		<guid isPermaLink="false">http://antonperez.com/2008/02/28/microsoft-virtual-launch/</guid>
		<description><![CDATA[You can check out the virtual launch for Visual Studio 2008, SQL Server 2008 and Windows Server 2008 here. You never know&#8230;Steve Ballmer may have another &#8220;developers, developers, developers&#8221; sweaty-armpit-speech. And why it&#8217;s called Heroes Happen Here, I don&#8217;t know. It&#8217;s worth looking into though.]]></description>
			<content:encoded><![CDATA[<p>You can check out the virtual launch for Visual Studio 2008, SQL Server 2008 and Windows Server 2008 <a href="http://www.microsoft.com/heroeshappenhere/default.mspx">here</a>.</p>
<p incrementviewcount="true">You never know&#8230;Steve Ballmer may have another &#8220;developers, developers, developers&#8221; sweaty-armpit-speech.  And why it&#8217;s called <strong>Heroes Happen Here</strong>, I don&#8217;t know.  It&#8217;s worth looking into though.</p>
]]></content:encoded>
			<wfw:commentRss>http://antonperez.com/2008/02/27/microsoft-virtual-launch/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Teach yourself programming in ten years</title>
		<link>http://antonperez.com/2008/01/07/teach-yourself-programming-in-ten-years/</link>
		<comments>http://antonperez.com/2008/01/07/teach-yourself-programming-in-ten-years/#comments</comments>
		<pubDate>Mon, 07 Jan 2008 22:47:50 +0000</pubDate>
		<dc:creator>anton</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[General Development]]></category>
		<category><![CDATA[Resource]]></category>

		<guid isPermaLink="false">http://antonperez.com/2008/01/02/teach-yourself-programming-in-ten-years/</guid>
		<description><![CDATA[Here&#8217;s an interesting article that Peter Norvig wrote about how wanna-be programmers are in such a hurry in becoming a full-fledged &#8220;developer,&#8221; buying into Teach Yourself &#60;some language&#62; in 21 days books and the likes. I&#8217;ve been developing/programming for a while now and to become a developer, a great one, you simply cannot take shortcuts. [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s an interesting article that Peter Norvig wrote about how wanna-be programmers are in such a hurry in becoming a full-fledged &#8220;developer,&#8221; buying into <em>Teach Yourself &lt;some language&gt; in 21 days </em>books and the likes.</p>
<p>I&#8217;ve been developing/programming for a while now and to become a developer, a great one, you simply cannot take shortcuts.</p>
<p>Every aspiring or veteran developer should read or re-read Norvig&#8217;s <a href="http://norvig.com/21-days.html">Teach Yourself Programming in Ten Years article</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://antonperez.com/2008/01/07/teach-yourself-programming-in-ten-years/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SQL Server Best Practices</title>
		<link>http://antonperez.com/2007/11/14/sql-server-best-practices/</link>
		<comments>http://antonperez.com/2007/11/14/sql-server-best-practices/#comments</comments>
		<pubDate>Wed, 14 Nov 2007 19:27:54 +0000</pubDate>
		<dc:creator>anton</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[How-to]]></category>
		<category><![CDATA[Microsoft]]></category>

		<guid isPermaLink="false">http://antonperez.com/2007/11/14/sql-server-best-practices/</guid>
		<description><![CDATA[For archival purposes, here&#8217;s the location of a ton of white papers for best practices or SQL Server on the TechNet site. Best Practice is a management idea which asserts that there is a technique, method, process, activity, incentive or reward that is more effective at delivering a particular outcome than any other technique, method, [...]]]></description>
			<content:encoded><![CDATA[<p>For archival purposes, here&#8217;s the <a href="http://technet.microsoft.com/en-us/sqlserver/bb331794.aspx">location</a> of a ton of white papers for <strong>best practices </strong>or SQL Server on the TechNet site.</p>
<blockquote><p><b>Best Practice</b> is a <a href="http://en.wikipedia.org/wiki/Management_fad">management idea</a> which asserts that there is a <a href="http://en.wiktionary.org/wiki/technique">technique</a>, method, process, activity, incentive or reward that is more effective at delivering a particular outcome than any other technique, method, process, etc. The idea is that with proper processes, checks, and testing, a desired outcome can be delivered with fewer problems and unforeseen complications. Best practices can also be defined as the most efficient (least amount of effort) and effective (best results) way of accomplishing a task, based on repeatable procedures that have proven themselves over time for large numbers of people.</p>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://antonperez.com/2007/11/14/sql-server-best-practices/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SQL Injection-proof your integrated SQL search in ASP.NET 2.0</title>
		<link>http://antonperez.com/2007/10/31/sql-injection-proof-your-integrated-sql-search-in-aspnet-20/</link>
		<comments>http://antonperez.com/2007/10/31/sql-injection-proof-your-integrated-sql-search-in-aspnet-20/#comments</comments>
		<pubDate>Wed, 31 Oct 2007 21:35:38 +0000</pubDate>
		<dc:creator>anton</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[How-to]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://antonperez.com/2007/10/31/sql-injection-proof-your-integrated-sql-search-in-aspnet-20/</guid>
		<description><![CDATA[I had forgotten to add SQL Injection prevention logic when I integrated and implemented a SQL search&#160;function for my employer&#8217;s&#160;internal ASP.NET app.&#160; So in this post, I&#8217;m adding it for archival and sharing purposes. SQL injection is an attack in which malicious code is inserted into strings that are later passed to an instance of [...]]]></description>
			<content:encoded><![CDATA[<p>I had forgotten to add SQL Injection prevention logic when I integrated and implemented a SQL search&nbsp;function for my employer&#8217;s&nbsp;internal ASP.NET app.&nbsp; So in this post, I&#8217;m adding it for archival and sharing purposes.</p>
<blockquote><p>SQL injection is an attack in which malicious code is inserted into strings that are later passed to an instance of SQL Server for parsing and execution.</p>
</blockquote>
<p>BTW, here&#8217;s an excellent <a href="http://msdn2.microsoft.com/en-us/library/ms161953.aspx">article</a> about SQL Injection on the MSDN site.&nbsp;</p>
<p>1. The first thing you&#8217;ll need to do is grab the user&#8217;s input from the search textbox; for example:</p>
<pre class="code"><font size="2"><span style="color: rgb(0,128,0)">// Get user search input
</span><span style="color: rgb(0,0,255)">string</span> requestString = txtSearch.Text.Trim(<span style="color: rgb(0,0,255)">null</span>);</font></pre>
<p>2. Next, you&#8217;ll need to add logic to see if the user input contains any of the following: </p>
<p><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="163" alt="image" src="http://antonperez.com/wp-content/uploads/2007/10/image58.png" width="488" border="0"> </p>
<p>I added something like this:</p>
<pre class="code">

<font size="2"><span style="color: rgb(0,0,255)">if</span> ((requestString.Contains(<span style="color: rgb(163,21,21)">";"</span>)) || (requestString.Contains(<span style="color: rgb(163,21,21)">"'"</span>)) ||
    (requestString.Contains(<span style="color: rgb(163,21,21)">"--"</span>)) || (requestString.Contains(<span style="color: rgb(163,21,21)">"/*"</span>)) ||
    (requestString.Contains(<span style="color: rgb(163,21,21)">"*/"</span>)) || (requestString.Contains(<span style="color: rgb(163,21,21)">"xp_"</span>)))
</span>{
    </font><font size="2"><span style="color: rgb(0,128,0)">// Stop processing and notify user
</span>}
</font><font size="2"><span style="color: rgb(0,0,255)">else
</span>{
    </font><font size="2"><span style="color: rgb(0,128,0)">// Continue processing and show results
</span>}</font>
</pre>
<p><a href="http://11011.net/software/vspaste"></a></p>
<p>3. Build/compile your app then test it out.&nbsp; If all goes well, you should not get any errors and your web app&#8217;s search function&nbsp;should now be SQL Injection-proof.</p>
]]></content:encoded>
			<wfw:commentRss>http://antonperez.com/2007/10/31/sql-injection-proof-your-integrated-sql-search-in-aspnet-20/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

