<?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"
	>
<channel>
	<title>Comments on: What exactly is a NULL?</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/sql-server/what-exactly-is-a-null/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/sql-server/what-exactly-is-a-null/</link>
	<description></description>
	<pubDate>Sat, 28 Nov 2009 15:18:05 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
		<item>
		<title>By: mrdenny</title>
		<link>http://itknowledgeexchange.techtarget.com/sql-server/what-exactly-is-a-null/#comment-224</link>
		<dc:creator>mrdenny</dc:creator>
		<pubDate>Sun, 26 Apr 2009 18:21:50 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/sql-server/?p=380#comment-224</guid>
		<description>Whereami,
Sorry to be so long getting back to you.

The best bet is to load the data into a staging table which has the date field defined as a text string.  You can then load into the staging table using the native value, then insert into your production table casting the value to a datetime data type.  You can use a CASE statement to convert the value that SAP is giving you into NULL.

Denny</description>
		<content:encoded><![CDATA[<p>Whereami,<br />
Sorry to be so long getting back to you.</p>
<p>The best bet is to load the data into a staging table which has the date field defined as a text string.  You can then load into the staging table using the native value, then insert into your production table casting the value to a datetime data type.  You can use a CASE statement to convert the value that SAP is giving you into NULL.</p>
<p>Denny</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Whereami</title>
		<link>http://itknowledgeexchange.techtarget.com/sql-server/what-exactly-is-a-null/#comment-197</link>
		<dc:creator>Whereami</dc:creator>
		<pubDate>Fri, 27 Feb 2009 16:58:41 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/sql-server/?p=380#comment-197</guid>
		<description>Hey Mr. Denny    -   Thanks for this explanation.   It helped me understand [B]Null[/B]  a little better.   I'm not a sql programmer and I'm not a dba so things like this help me out.   Past couple of years I've had to learn some sql stuff on my own as I've been main support for a 3rd party software application that uses sql 2000 databases and a .NET frontend application.

Just yesterday I came across a problem which I hope you can help me with.

I have searched the web for "null value in text field",  "null",  etc.
There are pages and pages of search results and I've been reading some of the links that look promising but so far have not found anything useful. 

[B]Can you please help?  I think the solution is probably pretty simple but I just don't know sql well enough.[/B]

Below is a description of what I'm trying to do:

I'm trying to load a text file using a DTS package into a SQL 2000 database table.   The text file contains information from our SAP backend system.
All the text file fields have a fixed length, and the fields are delimited with the vertical bar  '&#124;'.

1 of the fields in the sql db table is defined as a datetime with length 8.
This table date field allows null.

This is my question:

[B]If my date field in the text file is blank or unknown, how can I move a null value into the date field so that DTS can process the field into the sql database table correctly?[/B]

Things I have already tried:

00/00/0000   in the date field   - - &#62;   this does not work.

blank in the date field   - - &#62;  this does not work.

09/09/9999  in the date field - - &#62;  this works but now the front end shows this fake date.

getting rid of the spaces between the vertical bars if there is no date value 
such as this  - - &#62;    &#124;&#124;               &#60; - -    this works but I don't know how to move the vertical bars if the field is blank.</description>
		<content:encoded><![CDATA[<p>Hey Mr. Denny    -   Thanks for this explanation.   It helped me understand <b>Null</b>  a little better.   I&#8217;m not a sql programmer and I&#8217;m not a dba so things like this help me out.   Past couple of years I&#8217;ve had to learn some sql stuff on my own as I&#8217;ve been main support for a 3rd party software application that uses sql 2000 databases and a .NET frontend application.</p>
<p>Just yesterday I came across a problem which I hope you can help me with.</p>
<p>I have searched the web for &#8220;null value in text field&#8221;,  &#8220;null&#8221;,  etc.<br />
There are pages and pages of search results and I&#8217;ve been reading some of the links that look promising but so far have not found anything useful. </p>
<p><b>Can you please help?  I think the solution is probably pretty simple but I just don&#8217;t know sql well enough.</b></p>
<p>Below is a description of what I&#8217;m trying to do:</p>
<p>I&#8217;m trying to load a text file using a DTS package into a SQL 2000 database table.   The text file contains information from our SAP backend system.<br />
All the text file fields have a fixed length, and the fields are delimited with the vertical bar  &#8216;|&#8217;.</p>
<p>1 of the fields in the sql db table is defined as a datetime with length 8.<br />
This table date field allows null.</p>
<p>This is my question:</p>
<p><b>If my date field in the text file is blank or unknown, how can I move a null value into the date field so that DTS can process the field into the sql database table correctly?</b></p>
<p>Things I have already tried:</p>
<p>00/00/0000   in the date field   - - &gt;   this does not work.</p>
<p>blank in the date field   - - &gt;  this does not work.</p>
<p>09/09/9999  in the date field - - &gt;  this works but now the front end shows this fake date.</p>
<p>getting rid of the spaces between the vertical bars if there is no date value<br />
such as this  - - &gt;    ||               &lt; - -    this works but I don&#8217;t know how to move the vertical bars if the field is blank.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: IT Knowledge Exchange Community Update for 02/24/09 - ITKE Community Blog</title>
		<link>http://itknowledgeexchange.techtarget.com/sql-server/what-exactly-is-a-null/#comment-195</link>
		<dc:creator>IT Knowledge Exchange Community Update for 02/24/09 - ITKE Community Blog</dc:creator>
		<pubDate>Tue, 24 Feb 2009 15:39:23 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/sql-server/?p=380#comment-195</guid>
		<description>[...] What exactly is a NULL? &#124; SQL Server with Mr. Denny [...]</description>
		<content:encoded><![CDATA[<p>[...] What exactly is a NULL? | SQL Server with Mr. Denny [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wqwetto</title>
		<link>http://itknowledgeexchange.techtarget.com/sql-server/what-exactly-is-a-null/#comment-194</link>
		<dc:creator>Wqwetto</dc:creator>
		<pubDate>Mon, 23 Feb 2009 13:05:52 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/sql-server/?p=380#comment-194</guid>
		<description>How is NULL more meaningful than 1/1/1900? What is a meaning without a model of the data? I can define a model in which NULL dates are interpreted as 1/1/1900!</description>
		<content:encoded><![CDATA[<p>How is NULL more meaningful than 1/1/1900? What is a meaning without a model of the data? I can define a model in which NULL dates are interpreted as 1/1/1900!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!-- dynamic -->