<?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>Maurice&#039;s Musings &#187; sql</title>
	<atom:link href="http://www.calvert.ch/maurice/tag/sql/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.calvert.ch/maurice</link>
	<description>On People, Life and Technology</description>
	<lastBuildDate>Sat, 04 Feb 2012 22:37:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>MS SQL Server ISNUMERIC bug &#8211; the joys of separators</title>
		<link>http://www.calvert.ch/maurice/2009/07/01/ms-sql-server-isnumeric-bug-the-joys-of-separators/</link>
		<comments>http://www.calvert.ch/maurice/2009/07/01/ms-sql-server-isnumeric-bug-the-joys-of-separators/#comments</comments>
		<pubDate>Wed, 01 Jul 2009 09:56:43 +0000</pubDate>
		<dc:creator>maurice</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://www.calvert.ch/maurice/?p=149</guid>
		<description><![CDATA[From an early age I have practised defensive programming. On a recent project, I was loading data entered on an intranet site to an SQL Server table. Wary, I used SQL&#8217;s ISNUMERIC function to validate the numbers users had entered. It worked fine for a few weeks, until somone entered a comma as a decimal <a href='http://www.calvert.ch/maurice/2009/07/01/ms-sql-server-isnumeric-bug-the-joys-of-separators/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>From an early age I have practised defensive programming. On a recent project, I was loading data entered on an intranet site to an SQL Server table. Wary, I used SQL&#8217;s ISNUMERIC function to validate the numbers users had entered. It worked fine for a few weeks, until somone entered a comma as a decimal separator. It turns out that ISNUMERIC accepts this, whereas casting doesn&#8217;t. Here&#8217;s the proof:</p>
<p><img class="aligncenter size-full wp-image-150" src="http://www.calvert.ch/maurice/files/2009/07/isnumeric.jpg" alt="isnumeric" width="418" height="441" /></p>
<p>Doubtless, MS will try and wriggle out by saying that it depends on how your international settings are made. My contention is that if ISNUMERIC says it is then you should be able to CAST it to a number.</p>
<p>Period. </p>
<p>(sorry for the weak pun)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.calvert.ch/maurice/2009/07/01/ms-sql-server-isnumeric-bug-the-joys-of-separators/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

