<?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>aracheon.com &#187; sql</title>
	<atom:link href="http://www.aracheon.com/tag/sql/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.aracheon.com</link>
	<description>...Chris' ostensible rendezvous with reality</description>
	<lastBuildDate>Sun, 11 Dec 2011 21:34:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.4</generator>
		<item>
		<title>Business Intelligence Development Studio&#8230; you suck.</title>
		<link>http://www.aracheon.com/2009/02/26/business-intelligence-development-studio-you-suck/</link>
		<comments>http://www.aracheon.com/2009/02/26/business-intelligence-development-studio-you-suck/#comments</comments>
		<pubDate>Thu, 26 Feb 2009 20:19:18 +0000</pubDate>
		<dc:creator>Christopher</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[business]]></category>
		<category><![CDATA[intelligence]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[studio]]></category>

		<guid isPermaLink="false">http://www.aracheon.com/?p=78</guid>
		<description><![CDATA[Way to go, Microsoft&#8230; hiding shit from me. So as part of this new database development project I&#8217;ve been working on, I&#8217;m having to normalize and unwind an unwieldly Excel sheet that&#8217;s chock full of intermixed data within the same columns. Values, ranges of values, integers, currency, percentages, and text. Yeah. As part of the [...]]]></description>
			<content:encoded><![CDATA[<p>Way to go, Microsoft&#8230; hiding shit from me.</p>
<p>So as part of this new database development project I&#8217;ve been working on, I&#8217;m having to normalize and unwind an unwieldly Excel sheet that&#8217;s chock full of intermixed data within the same columns. Values, ranges of values, integers, currency, percentages, and text. Yeah.</p>
<p>As part of the conversion process and figuring out what algorithms to write to unwind the data, I&#8217;m using the Visual Studio 2005 Business Intelligence Development Studio to run my data conversion and SQL population tasks. One of the things that&#8217;s SERIOUSLY irritated me from the get-go about this tool is that the Excel OleDBConnection object flat out ignores data, or gives its own interpretation as to what it thinks a certain column&#8217;s datatype is. (STUPID.) This ended up throwing errors that wouldn&#8217;t even output to the specified errorOutput columns &#8211; just to a dialog box that said it gave up. In short, it wasn&#8217;t able to convert from the datetimestamp datatype from Excel to the datetime datatype in SQL.</p>
<p>I showed this to my resident data warehouse SQL guru guy, who was having a similar issue with a project he was working on. Apparently, there&#8217;s a not-so-well-documented &#8220;feature&#8221; in the OLEDB connection string (used in BIDS) whereby if you append the value IMEX=1 to the end of it, it forces the data flow task to read all intermixed data as a string. Dates, integers, strings, whatever. (Verified by <a href="http://www.connectionstrings.com" target="_blank">connectionstrings.com</a>). The Data Conversion step in my workflow task FINALLY started behaving normally and doing what I asked it to to &#8211; including throwing data into the correct external columns and everything in my test table. WOOHOO!</p>
<p>Now the fun of trying to figure out how to un-wind the cluster of integer strings and values in my dataset. *Sigh* Any cursor gurus out there? <img src='http://www.aracheon.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.aracheon.com/2009/02/26/business-intelligence-development-studio-you-suck/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

