<?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>Real World SQL</title>
	<atom:link href="http://realworldsql.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://realworldsql.com</link>
	<description>SQL Solutions for the database developer</description>
	<lastBuildDate>Tue, 08 May 2012 18:39:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>SSRS Recursive parent</title>
		<link>http://realworldsql.com/2012/05/08/ssrs-recursive-parent/</link>
		<comments>http://realworldsql.com/2012/05/08/ssrs-recursive-parent/#comments</comments>
		<pubDate>Tue, 08 May 2012 18:38:22 +0000</pubDate>
		<dc:creator>Jeff Rix</dc:creator>
				<category><![CDATA[SSRS]]></category>
		<category><![CDATA[Recursive parent]]></category>
		<category><![CDATA[SSRS hierarchy]]></category>
		<category><![CDATA[SSRS Recursive parent]]></category>

		<guid isPermaLink="false">http://realworldsql.com/?p=134</guid>
		<description><![CDATA[If you have a hierarchy in your Dataset and you would like the records to be displayed in the appropriate order you can handle this in SSIS by specifying a Recursive parent under the Advanced Group Properties for the Row Group. My Data set has a process id and the process id it is dependent [...]]]></description>
			<content:encoded><![CDATA[<p>If you have a hierarchy in your Dataset and you would like the records to be displayed in the appropriate order you can handle this in SSIS by specifying a Recursive parent under the Advanced Group Properties for the Row Group.</p>
<p>My Data set has a process id and the process id it is dependent upon.</p>
<p><a href="http://realworldsql.com/wp-content/uploads/2012/05/image2.png"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="image" src="http://realworldsql.com/wp-content/uploads/2012/05/image_thumb2.png" alt="image" width="224" height="199" border="0" /></a></p>
<p>set the recursive parent for the row group.</p>
<p><a href="http://realworldsql.com/wp-content/uploads/2012/05/image3.png"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="image" src="http://realworldsql.com/wp-content/uploads/2012/05/image_thumb3.png" alt="image" width="368" height="350" border="0" /></a></p>
<p>The data will now display in the appropriate order.</p>
<p><a href="http://realworldsql.com/wp-content/uploads/2012/05/image4.png"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="image" src="http://realworldsql.com/wp-content/uploads/2012/05/image_thumb4.png" alt="image" width="115" height="264" border="0" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://realworldsql.com/2012/05/08/ssrs-recursive-parent/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Foreach Loop Container</title>
		<link>http://realworldsql.com/2012/05/08/foreach-loop-container/</link>
		<comments>http://realworldsql.com/2012/05/08/foreach-loop-container/#comments</comments>
		<pubDate>Tue, 08 May 2012 18:16:58 +0000</pubDate>
		<dc:creator>Jeff Rix</dc:creator>
				<category><![CDATA[SSIS]]></category>
		<category><![CDATA[ForEach Loop]]></category>
		<category><![CDATA[SSIS ForEach Loop]]></category>
		<category><![CDATA[SSIS process multiple files]]></category>
		<category><![CDATA[SSIS Variables]]></category>

		<guid isPermaLink="false">http://realworldsql.com/?p=122</guid>
		<description><![CDATA[A foreach loop container in SSIS processes each file in a folder based on the wildcard setting. In the Enumerator Configuration you specify the directory to look into and in the files you specify the type of file you are looking to find. The traverse subfolder option will look for files in the subfolder that [...]]]></description>
			<content:encoded><![CDATA[<p>A foreach loop container in SSIS processes each file in a folder based on the wildcard setting. In the Enumerator Configuration you specify the directory to look into and in the files you specify the type of file you are looking to find. The traverse subfolder option will look for files in the subfolder that meet the specified file name.</p>
<p><a href="http://realworldsql.com/wp-content/uploads/2012/05/for-each-loop-collection.png"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="for each loop collection" src="http://realworldsql.com/wp-content/uploads/2012/05/for-each-loop-collection_thumb.png" alt="for each loop collection" width="454" height="337" border="0" /></a></p>
<p>Map the file name to the variable. In the collection page you can specify fully qualified, name only, or name and extension.</p>
<p><a href="http://realworldsql.com/wp-content/uploads/2012/05/image.png"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="image" src="http://realworldsql.com/wp-content/uploads/2012/05/image_thumb.png" alt="image" width="459" height="189" border="0" /></a></p>
<p>You can now set the variable file name to your data source by setting a expression in the Connection managers properties window. Text files can be set by the ConnectionString property expression and excel files can be set using the ExcelFilePath.</p>
<p><a href="http://realworldsql.com/wp-content/uploads/2012/05/image1.png"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="image" src="http://realworldsql.com/wp-content/uploads/2012/05/image_thumb1.png" alt="image" width="461" height="165" border="0" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://realworldsql.com/2012/05/08/foreach-loop-container/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using Row Count data flow transformations</title>
		<link>http://realworldsql.com/2012/01/19/using-row-count-data-flow-transformations/</link>
		<comments>http://realworldsql.com/2012/01/19/using-row-count-data-flow-transformations/#comments</comments>
		<pubDate>Thu, 19 Jan 2012 15:13:38 +0000</pubDate>
		<dc:creator>Jeff Rix</dc:creator>
				<category><![CDATA[SSIS]]></category>

		<guid isPermaLink="false">http://realworldsql.com/?p=112</guid>
		<description><![CDATA[Create an Int32 user variable with a package scope. Configure the Row Count property Custom Properties&#62;Variable Name to the user variable. You cannot use the Row Count variable in the same dataflow it is set because it is processing the records and sending them to the destination at the same time. to use in the [...]]]></description>
			<content:encoded><![CDATA[<p>Create an Int32 user variable with a package scope. Configure the Row Count property Custom Properties&gt;Variable Name to the user variable.</p>
<p><a href="http://realworldsql.com/wp-content/uploads/2012/01/image5.png"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="image" src="http://realworldsql.com/wp-content/uploads/2012/01/image_thumb5.png" alt="image" width="458" height="356" border="0" /></a></p>
<p>You cannot use the Row Count variable in the same dataflow it is set because it is processing the records and sending them to the destination at the same time.</p>
<p>to use in the variable in an Execute SQL Task use an ADO.Net Connection Type and map the variable to an input parameter with the same data type using a parameter name that starts with the @ character.</p>
<p><a href="http://realworldsql.com/wp-content/uploads/2012/01/image6.png"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="image" src="http://realworldsql.com/wp-content/uploads/2012/01/image_thumb6.png" alt="image" width="476" height="145" border="0" /></a></p>
<p>In your query reference the variable using the parameter name and you will be all set!</p>
]]></content:encoded>
			<wfw:commentRss>http://realworldsql.com/2012/01/19/using-row-count-data-flow-transformations/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Duplicate Keys in a dimensional hierarchy</title>
		<link>http://realworldsql.com/2012/01/13/duplicate-keys-in-a-dimensional-hierarchy/</link>
		<comments>http://realworldsql.com/2012/01/13/duplicate-keys-in-a-dimensional-hierarchy/#comments</comments>
		<pubDate>Fri, 13 Jan 2012 21:41:40 +0000</pubDate>
		<dc:creator>Jeff Rix</dc:creator>
				<category><![CDATA[SSAS]]></category>
		<category><![CDATA[Dublicate Keys in a dimensional hierachy]]></category>
		<category><![CDATA[SSAS Duplicate Keys in a dimensional hierachy]]></category>

		<guid isPermaLink="false">http://realworldsql.com/?p=104</guid>
		<description><![CDATA[This  date hierarchy has year at the highest level and date at the lowest level. Months and quarters are between the highest and lowest levels in this data hierarchy. Each year has a fourth quarter and each Quarter has the month of December. The default property for dimensions in SSAS are set up to treat [...]]]></description>
			<content:encoded><![CDATA[<p>This  date hierarchy has year at the highest level and date at the lowest level. Months and quarters are between the highest and lowest levels in this data hierarchy.</p>
<p><a href="http://realworldsql.com/wp-content/uploads/2012/01/image2.png"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="image" src="http://realworldsql.com/wp-content/uploads/2012/01/image_thumb2.png" alt="image" width="496" height="256" border="0" /></a></p>
<p>Each year has a fourth quarter and each Quarter has the month of December.</p>
<p>The default property for dimensions in SSAS are set up to treat this as an error.</p>
<p>For most dimensions this would align with the business rules. If you had a football</p>
<p>league roster you would want the dimension to throw an error if it had a player</p>
<p>playing on more than 1 team.</p>
<p><a href="http://realworldsql.com/wp-content/uploads/2012/01/image3.png"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="image" src="http://realworldsql.com/wp-content/uploads/2012/01/image_thumb3.png" alt="image" width="421" height="226" border="0" /></a></p>
<p>Change the Key Duplicate Error Configuration to Ignore Error.</p>
<p><a href="http://realworldsql.com/wp-content/uploads/2012/01/image4.png"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="image" src="http://realworldsql.com/wp-content/uploads/2012/01/image_thumb4.png" alt="image" width="425" height="243" border="0" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://realworldsql.com/2012/01/13/duplicate-keys-in-a-dimensional-hierarchy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic page generated in 1.012 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2012-05-20 04:21:00 -->

