<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:media="http://search.yahoo.com/mrss/" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" version="2.0">

<channel>
	<title>Six Twenty</title>
	
	<link>http://www.sixtwentyblog.com</link>
	<description>A Web Development Blog</description>
	<lastBuildDate>Fri, 24 Jul 2009 20:13:10 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<!-- podcast_generator="podPress/8.8" - maintenance_release="8.8.4" -->
		<copyright>Copyright © Six Twenty 2010 </copyright>
		<managingEditor>alan@alanbeam.net (Six Twenty)</managingEditor>
		<webMaster>alan@alanbeam.net (Six Twenty)</webMaster>
		<category>posts</category>
		<itunes:keywords />
		<itunes:subtitle />
		<itunes:summary>A Web Development Blog</itunes:summary>
		<itunes:author>Six Twenty</itunes:author>
		<itunes:category text="Society &amp; Culture" />
		<itunes:owner>
			<itunes:name>Six Twenty</itunes:name>
			<itunes:email>alan@alanbeam.net</itunes:email>
		</itunes:owner>
		<itunes:block>No</itunes:block>
		<itunes:explicit>no</itunes:explicit>
		<itunes:image href="http://www.sixtwentyblog.com/wp-content/plugins/podpress/images/powered_by_podpress_large.jpg" />
		<image>
			<url>http://www.sixtwentyblog.com/wp-content/plugins/podpress/images/powered_by_podpress.jpg</url>
			<title>Six Twenty</title>
			<link>http://www.sixtwentyblog.com</link>
			<width>144</width>
			<height>144</height>
		</image>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/SixTwenty" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="sixtwenty" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><geo:lat>33.028921</geo:lat><geo:long>-96.681023</geo:long><feedburner:emailServiceId xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">SixTwenty</feedburner:emailServiceId><feedburner:feedburnerHostname xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>PHP File Upload Gives Empty $_POST and $_FILES</title>
		<link>http://www.sixtwentyblog.com/2009/07/24/php-file-upload-gives-empty-_post-and-_files/</link>
		<comments>http://www.sixtwentyblog.com/2009/07/24/php-file-upload-gives-empty-_post-and-_files/#comments</comments>
		<pubDate>Fri, 24 Jul 2009 20:13:10 +0000</pubDate>
		<dc:creator>UTAlan</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[File Upload]]></category>
		<category><![CDATA[php.ini]]></category>

		<guid isPermaLink="false">http://www.sixtwentyblog.com/?p=106</guid>
		<description><![CDATA[10 minutes ago, I was banging my head against the wall. I could not, for the life of me, upload a file bigger than about 7MB. I increased the MAX_FILE_SIZE hidden field and the UPLOAD_MAX_FILESIZE in my php.ini file to 100MB, just to be safe. Still nothing.
Google to the rescue. One of the results came [...]]]></description>
			<content:encoded><![CDATA[<p>10 minutes ago, I was banging my head against the wall. I could not, for the life of me, upload a file bigger than about 7MB. I increased the MAX_FILE_SIZE hidden field and the UPLOAD_MAX_FILESIZE in my php.ini file to 100MB, just to be safe. Still nothing.</p>
<p>Google to the rescue. One of the results came from a comment on PHP.net&#8217;s <a href="http://us2.php.net/manual/en/features.file-upload.errors.php">Error Messages Explained</a> page. And I quote:</p>
<p><code>if post is greater than post_max_size set in php.ini<br />
$_FILES and $_POST will return empty</code></p>
<p>Something I didn&#8217;t know to look for was the POST_MAX_SIZE setting. I increased this to 100MB and it worked like a charm.</p>
<p>* As a side note, in most instances, I would not recommend using 100MB as your max file size and post size. After getting it to work, I decreased it to a more reasonable amount (20MB).</p>
<img src="http://feeds.feedburner.com/~r/SixTwenty/~4/LFkL35vWInA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.sixtwentyblog.com/2009/07/24/php-file-upload-gives-empty-_post-and-_files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SQL Server – Concat with NULL</title>
		<link>http://www.sixtwentyblog.com/2009/06/30/sql-server-concat-with-null/</link>
		<comments>http://www.sixtwentyblog.com/2009/06/30/sql-server-concat-with-null/#comments</comments>
		<pubDate>Tue, 30 Jun 2009 16:30:59 +0000</pubDate>
		<dc:creator>UTAlan</dc:creator>
				<category><![CDATA[Databases]]></category>
		<category><![CDATA[Concat]]></category>
		<category><![CDATA[MSSQL]]></category>
		<category><![CDATA[NULL Values]]></category>

		<guid isPermaLink="false">http://www.sixtwentyblog.com/?p=98</guid>
		<description><![CDATA[Sorry I haven&#8217;t posted much lately. I got married a couple of Saturdays ago, then went on my honeymoon for a week. But I&#8217;m back now and better than ever.  
***
I had a &#8220;duh&#8221; moment this morning as I was trying to figure out why my SQL code was returning NULL values. I had [...]]]></description>
			<content:encoded><![CDATA[<p>Sorry I haven&#8217;t posted much lately. I got married a couple of Saturdays ago, then went on my honeymoon for a week. But I&#8217;m back now and better than ever. <img src='http://www.sixtwentyblog.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>***</p>
<p>I had a &#8220;duh&#8221; moment this morning as I was trying to figure out why my SQL code was returning NULL values. I had something to this effect:</p>
<p><code>SELECT firstName + ' ' + lastName FROM employees WHERE active = 1</code></p>
<p>As it turns out, if either firstName or lastName have are NULL, the concatenation will return NULL. I guess I just assumed it would treat NULL as an empty string in this case, but no such luck. Keep this in mind when storing NULL values in text fields that may need concatenation at some point.</p>
<img src="http://feeds.feedburner.com/~r/SixTwenty/~4/xIMaNeuwC1M" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.sixtwentyblog.com/2009/06/30/sql-server-concat-with-null/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title />
		<link>http://www.sixtwentyblog.com/2009/06/10/93/</link>
		<comments>http://www.sixtwentyblog.com/2009/06/10/93/#comments</comments>
		<pubDate>Wed, 10 Jun 2009 13:38:36 +0000</pubDate>
		<dc:creator>UTAlan</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Ajax]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[MooTools]]></category>

		<guid isPermaLink="false">http://www.sixtwentyblog.com/?p=93</guid>
		<description><![CDATA[I&#8217;ve always been a fan of MooTools, ever since I needed the Accordion functionality on a site I built back in January of 2008. Since then, I have stubbornly stuck to that choice, using it for all websites that could use some cool Javascript functionality (especially Fx.Slide). While redesigning AlanBeam.net, I decided to give jQuery [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-full wp-image-95" title="jQuery Tabs" src="http://www.sixtwentyblog.com/wp-content/uploads/2009/06/jquerytabs.png" alt="jQuery Tabs" width="250" height="100" />I&#8217;ve always been a fan of <a href="http://www.mootools.net/" target="_self">MooTools</a>, ever since I needed the Accordion functionality on a site I built back in January of 2008. Since then, I have stubbornly stuck to that choice, using it for all websites that could use some cool Javascript functionality (especially Fx.Slide). While redesigning <a href="http://www.alanbeam.net" target="_blank">AlanBeam.net</a>, I decided to give <a href="http://jquery.com/" target="_self">jQuery</a> a try. I mean, if it&#8217;s good enough for Google and Mozilla, there&#8217;s gotta be something to it, right?</p>
<p>I gotta say, I waited too long to make the change. MooTools is nice, don&#8217;t get me wrong, but jQuery makes everything I want to do in Javascript incredibly simple. I love it. With the addition of <a href="http://flowplayer.org/tools/demos/index.html" target="_self">jQuery Tools</a>, I can add more than just fun effects, but user-friendly navigation, helpful tooltips, simple Ajax form submission, and plenty more, I am sure. I&#8217;ve found my new, reliable Javascript framework and I&#8217;m not looking back.</p>
<p>Which Javascript framework do you use?</p>
<img src="http://feeds.feedburner.com/~r/SixTwenty/~4/HzRf6sswCEA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.sixtwentyblog.com/2009/06/10/93/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>File Upload using Dojo and Python</title>
		<link>http://www.sixtwentyblog.com/2009/06/02/file-upload-using-dojo-and-python/</link>
		<comments>http://www.sixtwentyblog.com/2009/06/02/file-upload-using-dojo-and-python/#comments</comments>
		<pubDate>Tue, 02 Jun 2009 19:59:25 +0000</pubDate>
		<dc:creator>UTAlan</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Ajax]]></category>
		<category><![CDATA[Django]]></category>
		<category><![CDATA[Dojo]]></category>

		<guid isPermaLink="false">http://www.sixtwentyblog.com/?p=78</guid>
		<description><![CDATA[I was working on Azillia this past weekend and had trouble getting the File Uploader to work. Since I&#8217;m new to Python, debugging the errors were that much harder. However, I finally fixed it last night and everything seems to be working now. For those that are trying to do the same thing, here&#8217;s how [...]]]></description>
			<content:encoded><![CDATA[<p>I was working on Azillia this past weekend and had trouble getting the File Uploader to work. Since I&#8217;m new to Python, debugging the errors were that much harder. However, I finally fixed it last night and everything seems to be working now. For those that are trying to do the same thing, here&#8217;s how I did it:</p>
<p><strong><br />
The HTML</strong></p>
<pre><code>&lt;form action="/upload/" method="post" enctype="multipart/form-data" id="uploadForm"&gt;
    &lt;input type="hidden" name="MAX_FILE_SIZE" value="10000000" /&gt;
    Choose a file to upload:&lt;br /&gt;
    &lt;input name="uploadFile" type="file" /&gt;&lt;br /&gt;
    &lt;input type="submit" id="uploadSubmit" value="Upload File" /&gt;
&lt;/form&gt;</code></pre>
<p>Pretty simple, really.  Just make sure you have an id on the form and the submit button.</p>
<p><strong><br />
The Javascript</strong></p>
<pre><code>&lt;script type="text/javascript"
src="http://o.aolcdn.com/iamalpha/.resource/jssdk/dojo-0.2.2/dojo.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript"&gt;
dojo.addOnLoad(function() {
    var handle = dojo.connect(dojo.byId('uploadSubmit'), 'onclick', function (evt) {
        // Prevent Default Behavior
        evt.preventDefault();

        dojo.xhrPost({
            url: "/upload/",

            load: function(response, ioArgs) {
                // do stuff

                return response;
            }, // end load

            error: function(response, ioArgs) {
                // do stuff

                return response;
            }, // end error

            form: 'uploadForm',
        }); // end xhrPost
    }); // end connect
}); // end addOnLoad
&lt;/script&gt;</code></pre>
<p>I&#8217;m adding a dojo connect to the &#8220;onclick&#8221; event of the submit button. Instead of submitting the form as usual, it will do an xhrPost to the specified URL. If the upload succeeds, I can do what I want within the &#8220;load&#8221; section of xhrPost (display a success message, hide the form, etc.). However, if it fails, the &#8220;error&#8221; section will be called and I can display a message or whatever else I want to do.</p>
<p>That&#8217;s all there is to it on the client side. On to the server side&#8230;</p>
<p><strong><br />
The Python</strong></p>
<pre><code>(r'^upload/$', 'common.views.upload'),</code></pre>
<p>This gets added to my base urls.py, redirecting my POST call to the views file in my common directory.</p>
<pre><code>from libs.Http import Http
import time

def upload(request):
    if request.method == 'POST':
        handle_file_upload(request.FILES['uploadedFile'])
	return HttpResponse('success')
    else:
        return HttpResponseBadRequest('error')

def handle_file_upload(f):
    fn = "".join(['uploads/', str(time.time()), '.jpg'])
    destination = open(fn, 'wb+')
    for chunk in f.chunks():
        destination.write(chunk)
    destination.close()</code></pre>
<p>This will do the actual work of  the upload, basically taking the uploaded file and placing it in an uploads folder with the current timestamp as the filename.</p>
<p><strong>NOTE</strong>:  This is a skimmed down version of the actual upload, not checking the filetype or anything of the sort. If you are going to use this, make sure you add those basic security checks into your code.</p>
<p>That&#8217;s all! Like I said, pretty easy stuff, but I got stuck on a few little things (I just didn&#8217;t know any better) and thought this might help someone else out. Let me know if you see any problems with this or have suggestions for ways to improve upon it!</p>
<img src="http://feeds.feedburner.com/~r/SixTwenty/~4/Scr0L2aXZQ8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.sixtwentyblog.com/2009/06/02/file-upload-using-dojo-and-python/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>I Think This Is The Python</title>
		<link>http://www.sixtwentyblog.com/2009/05/28/i-think-this-is-the-python/</link>
		<comments>http://www.sixtwentyblog.com/2009/05/28/i-think-this-is-the-python/#comments</comments>
		<pubDate>Thu, 28 May 2009 15:42:43 +0000</pubDate>
		<dc:creator>UTAlan</dc:creator>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[XKCD]]></category>

		<guid isPermaLink="false">http://www.sixtwentyblog.com/?p=59</guid>
		<description><![CDATA[I love learning new programming languages. My newest venture is in Python and I&#8217;m loving it. This XKCD is a lot funnier after actually doing some Python programming.
]]></description>
			<content:encoded><![CDATA[<p>I love learning new programming languages. My newest venture is in Python and I&#8217;m loving it. This XKCD is a lot funnier after actually doing some Python programming.</p>
<div class="wp-caption aligncenter" style="width: 528px"><a href="http://xkcd.com/353/"><img title="Python" src="http://imgs.xkcd.com/comics/python.png" alt="Programming is fun again!" width="518" height="588" /></a><p class="wp-caption-text">Programming is fun again!</p></div>
<img src="http://feeds.feedburner.com/~r/SixTwenty/~4/GxRERb8qbEU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.sixtwentyblog.com/2009/05/28/i-think-this-is-the-python/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Some Dojo Tips</title>
		<link>http://www.sixtwentyblog.com/2009/05/25/some-dojo-tips/</link>
		<comments>http://www.sixtwentyblog.com/2009/05/25/some-dojo-tips/#comments</comments>
		<pubDate>Mon, 25 May 2009 17:58:47 +0000</pubDate>
		<dc:creator>UTAlan</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Ajax]]></category>
		<category><![CDATA[Dojo]]></category>
		<category><![CDATA[PostgreSQL]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://www.sixtwentyblog.com/?p=40</guid>
		<description><![CDATA[I recently joined a project that uses Python, PostgreSQL, and Dojo. I have not used any of these to any extent worth mentioning, so I&#8217;m learning quite a bit. I spent way too much time working on very simple bugs and thought I&#8217;d post the solutions I found here &#8211; hopefully to avoid anyone else [...]]]></description>
			<content:encoded><![CDATA[<p>I recently joined a project that uses Python, PostgreSQL, and Dojo. I have not used any of these to any extent worth mentioning, so I&#8217;m learning quite a bit. I spent way too much time working on very simple bugs and thought I&#8217;d post the solutions I found here &#8211; hopefully to avoid anyone else spending more time on them than is necessary.</p>
<p><strong>1. Use dojo.byId(&#8230;)</strong></p>
<p>Okay, so this isn&#8217;t one that gave me a hard time, but I read about the cross-browser compatibility of using dojo.byId instead of document.getElementById and thought it would be worth mentioning in here. According to <a href="http://www.dojotoolkit.org/book/dojo-book-0-9/part-3-programmatic-dijit-and-dojo/functions-used-everywhere/dojo-byid">DojoToolkit.org</a>, <em>bugs persist in Internet Explorer which make getElementById() unstable in some common scenarios.</em> Below is an example of one of these bugs:</p>
<p class="code"><code>&lt;script type="text/javascript"&gt;<br />
var elem = document.getElementById('myDiv'); // Returns form element<br />
var elem2 = dojo.byId('myDiv'); // Returns div<br />
&lt;/script&gt;</code></p>
<p><code>&lt;form&gt;<br />
&lt;div id="myDiv"&gt;TESTING&lt;/div&gt;<br />
&lt;/form&gt;</code></p>
<p>One of my least favorite things to do is debug IE errors. Save yourself the heartache and just dojo.byId if you have it available.</p>
<p><strong>2. Use dojo.addOnLoad(&#8230;)</strong></p>
<p>This one did give me trouble. I was unaware of the existence of this function until I had already spent a few hours trying to find out why my function wasn&#8217;t working. Here&#8217;s a simplified example of what I was doing:</p>
<p class="code"><code>&lt;script type="text/javascript"&gt;<br />
var button = dojo.byId('myButton');<br />
var handle = dojo.connect(button, 'onclick', function (evt) { alert('test'); });<br />
&lt;/script&gt;</code></p>
<p><code>&lt;input id="myButton" type="button" /&gt;</code></p>
<p>Theoretically, when I click the button, I should get an alert with the text &#8220;test&#8221;. However, as the code is,  I get the alert when I click <em>anywhere</em> on the page. The problem? dojo.byId(&#8216;myButton&#8217;) was returning null, adding my onclick event to every object on the page! Why was dojo.byId returning null for an object that clearly exists? I even went to my Firebug console and typed &#8220;dojo.byId(&#8216;myButton&#8217;)&#8221;, which of course, return my input button as expected. I finally realized (duh) that my javascript code is executing before the input element exists. Proper usage of the <a href="http://www.dojotoolkit.org/book/dojo-book-0-9/part-3-programmatic-dijit-and-dojo/functions-used-everywhere/dojo-addonload">addOnLoad function</a> fixed the problem.</p>
<p class="code"><code>&lt;script type="text/javascript"&gt;<br />
dojo.addOnLoad(function(){<br />
var button = dojo.byId('myButton');<br />
var handle = dojo.connect(button, 'onclick', function (evt) { alert('test'); });<br />
});<br />
&lt;/script&gt;</code></p>
<p><code>&lt;input id="myButton" type="button" /&gt;</code></p>
<p>Hopefully these tips will help save you some time that I wasted. Do you have any quick dojo tips that could save me time? Let me know in the comments section!</p>
<img src="http://feeds.feedburner.com/~r/SixTwenty/~4/X8E_wbiIZfs" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.sixtwentyblog.com/2009/05/25/some-dojo-tips/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Inserting Multiple Rows in MSSQL</title>
		<link>http://www.sixtwentyblog.com/2009/05/21/inserting-multiple-rows-in-mssql/</link>
		<comments>http://www.sixtwentyblog.com/2009/05/21/inserting-multiple-rows-in-mssql/#comments</comments>
		<pubDate>Thu, 21 May 2009 16:22:57 +0000</pubDate>
		<dc:creator>UTAlan</dc:creator>
				<category><![CDATA[Databases]]></category>
		<category><![CDATA[INSERT]]></category>
		<category><![CDATA[MSSQL]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[UNION ALL]]></category>

		<guid isPermaLink="false">http://sixtwenty.alanbeam.net/?p=6</guid>
		<description><![CDATA[While trying to find a way to insert multiple rows of data in one query using MSSQL, I found a solution on SQLAuthority.com. Their solution involves making use of the UNION ALL statement to combine multiple value statements. The example they give is:
USE YourDB
GO
INSERT INTO MyTable (FirstCol, SecondCol)
SELECT 'First' ,1
UNION ALL
SELECT 'Second' ,2
UNION ALL
SELECT 'Third' [...]]]></description>
			<content:encoded><![CDATA[<p>While trying to find a way to insert multiple rows of data in one query using MSSQL, I found a solution on <a href="http://blog.sqlauthority.com/2007/06/08/sql-server-insert-multiple-records-using-one-insert-statement-use-of-union-all/" target="_blank">SQLAuthority.com</a>. Their solution involves making use of the UNION ALL statement to combine multiple value statements. The example they give is:</p>
<p class="code"><code style="font-size: 12px;"><span style="color: blue;">USE </span>YourDB<br />
GO<br />
<span style="color: blue;">INSERT INTO </span>MyTable <span style="color: gray;">(</span>FirstCol<span style="color: gray;">, </span>SecondCol<span style="color: gray;">)<br />
</span><span style="color: blue;">SELECT </span><span style="color: red;">'First' </span><span style="color: gray;">,</span>1<br />
<span style="color: blue;">UNION </span><span style="color: gray;">ALL<br />
</span><span style="color: blue;">SELECT </span><span style="color: red;">'Second' </span><span style="color: gray;">,</span>2<br />
<span style="color: blue;">UNION </span><span style="color: gray;">ALL<br />
</span><span style="color: blue;">SELECT </span><span style="color: red;">'Third' </span><span style="color: gray;">,</span>3<br />
<span style="color: blue;">UNION </span><span style="color: gray;">ALL<br />
</span><span style="color: blue;">SELECT </span><span style="color: red;">'Fourth' </span><span style="color: gray;">,</span>4<br />
<span style="color: blue;">UNION </span><span style="color: gray;">ALL<br />
</span><span style="color: blue;">SELECT </span><span style="color: red;">'Fifth' </span><span style="color: gray;">,</span>5<br />
GO</code></p>
<p>This is a great solution and works perfectly. However, I have found that it is not the easiest to remember &#8211; I have to go back to that site any time I want to use this because I just can&#8217;t remember the exact syntax. I was discussing this solution with a co-worker and he suggested we try something different:</p>
<p class="code"><code style="font-size: 12px;"><span style="color: blue;">INSERT INTO </span>MyTable <span style="color: gray;">(</span>FirstCol<span style="color: gray;">, </span>SecondCol<span style="color: gray;">)<br />
</span><span style="color: #0000ff;">VALUES</span><br />
(<span style="color: red;">'First'</span><span style="color: gray;">, </span>1),<br />
(<span style="color: red;">'Second'</span><span style="color: gray;">, </span>2),<br />
(<span style="color: red;">'Third'</span><span style="color: gray;">, </span>3),<br />
(<span style="color: red;">'Fourth'</span><span style="color: gray;">, </span>4),<br />
(<span style="color: red;">'Fifth'</span><span style="color: gray;">, </span>5);</code></p>
<p>Sure enough, it works! Not only is it easier to write, but it&#8217;s so much easier to remember. Hopefully others will find this as useful as I did.</p>
<img src="http://feeds.feedburner.com/~r/SixTwenty/~4/Owx1EJcK_fo" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.sixtwentyblog.com/2009/05/21/inserting-multiple-rows-in-mssql/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Welcome to Six Twenty!</title>
		<link>http://www.sixtwentyblog.com/2009/05/21/hello-world/</link>
		<comments>http://www.sixtwentyblog.com/2009/05/21/hello-world/#comments</comments>
		<pubDate>Thu, 21 May 2009 15:22:51 +0000</pubDate>
		<dc:creator>UTAlan</dc:creator>
				<category><![CDATA[Admin]]></category>
		<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[ColdFusion]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[MooTools]]></category>
		<category><![CDATA[MSSQL]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://sixtwenty.alanbeam.net/?p=1</guid>
		<description><![CDATA[I hope you find the information on this blog useful. I get tired of searching for solutions that exist only on a cached page of a defunct forum in the corner of the interweb. I work mostly with XHTML, CSS, PHP, JavaScript (mostly MooTools), and MySQL, although I occasionally dab in ColdFusion, MSSQL, Flash, and [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://sixtwenty.alanbeam.net/wp-content/uploads/2009/05/openbody.jpg"><img class="size-full wp-image-4 alignnone" style="border: 1px solid black; margin: 0px 5px 5px 0px; float: left;" title="Open Body" src="http://sixtwenty.alanbeam.net/wp-content/uploads/2009/05/openbody.jpg" alt="Open Body" width="84" height="84" /></a>I hope you find the information on this blog useful. I get tired of searching for solutions that exist only on a cached page of a defunct forum in the corner of the interweb. I work mostly with XHTML, CSS, PHP, JavaScript (mostly MooTools), and MySQL, although I occasionally dab in ColdFusion, MSSQL, Flash, and ActionScript. Feel free to comment or contact me if you find a solution handy, incorrect, or just plain interesting. Thanks!</p>
<img src="http://feeds.feedburner.com/~r/SixTwenty/~4/DniHGhPZuRc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.sixtwentyblog.com/2009/05/21/hello-world/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
