<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: SqlParameters and NULL values</title>
	<atom:link href="http://benreichelt.net/blog/2006/01/05/sqlparameters-and-null-values/feed/" rel="self" type="application/rss+xml" />
	<link>http://benreichelt.net/blog/2006/01/05/sqlparameters-and-null-values/</link>
	<description></description>
	<lastBuildDate>Tue, 18 Aug 2009 22:20:45 -0400</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: breichelt</title>
		<link>http://benreichelt.net/blog/2006/01/05/sqlparameters-and-null-values/comment-page-1/#comment-604</link>
		<dc:creator>breichelt</dc:creator>
		<pubDate>Thu, 05 Jan 2006 17:01:59 +0000</pubDate>
		<guid isPermaLink="false">http://s194721765.onlinehome.us/blog/2006/01/05/sqlparameters-and-null-values/#comment-604</guid>
		<description>Eric, I bet I would still manage to goof it :)  Wheneve I have to code in VB, my mind always translates Nothing to null, so I bet I would still try it.

Eber, thats a great question, so I fired up Reflector and looked at the SqlParameter constructor. The value of the SqlParameter class gets initialized to null, not DBNull.Value, which is what we want.  I took a screenshot of reflector so you can take a look.

http://codebetter.com/photos/ben.reichelt/images/136294/original.aspx</description>
		<content:encoded><![CDATA[<p>Eric, I bet I would still manage to goof it <img src='http://benreichelt.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />   Wheneve I have to code in VB, my mind always translates Nothing to null, so I bet I would still try it.</p>
<p>Eber, thats a great question, so I fired up Reflector and looked at the SqlParameter constructor. The value of the SqlParameter class gets initialized to null, not DBNull.Value, which is what we want.  I took a screenshot of reflector so you can take a look.</p>
<p><a href="http://codebetter.com/photos/ben.reichelt/images/136294/original.aspx" rel="nofollow">http://codebetter.com/photos/ben.reichelt/images/136294/original.aspx</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://benreichelt.net/blog/2006/01/05/sqlparameters-and-null-values/comment-page-1/#comment-603</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Thu, 05 Jan 2006 16:34:33 +0000</pubDate>
		<guid isPermaLink="false">http://s194721765.onlinehome.us/blog/2006/01/05/sqlparameters-and-null-values/#comment-603</guid>
		<description>does it go null if you simply don&#039;t set the value?</description>
		<content:encoded><![CDATA[<p>does it go null if you simply don&#8217;t set the value?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ewise</title>
		<link>http://benreichelt.net/blog/2006/01/05/sqlparameters-and-null-values/comment-page-1/#comment-602</link>
		<dc:creator>ewise</dc:creator>
		<pubDate>Thu, 05 Jan 2006 15:07:53 +0000</pubDate>
		<guid isPermaLink="false">http://s194721765.onlinehome.us/blog/2006/01/05/sqlparameters-and-null-values/#comment-602</guid>
		<description>See, now you don&#039;t run into this in VB because there is no &quot;null&quot;.  Nothing is the VB  equivalent so the whole DBNull.Value thing is a bit easier to catch.

Let the language wars begin!</description>
		<content:encoded><![CDATA[<p>See, now you don&#8217;t run into this in VB because there is no &#8220;null&#8221;.  Nothing is the VB  equivalent so the whole DBNull.Value thing is a bit easier to catch.</p>
<p>Let the language wars begin!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
