<?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>Wajahat’s Blog</title>
	<atom:link href="http://wajeehs.net/feed" rel="self" type="application/rss+xml" />
	<link>http://wajeehs.net</link>
	<description>Syed Wajahat Aziz’s Blog</description>
	<lastBuildDate>Thu, 16 Jul 2009 11:23:58 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Issues with Multiple Data Sources in SSAS</title>
		<link>http://wajeehs.net/1/ssas_multiple_ds</link>
		<comments>http://wajeehs.net/1/ssas_multiple_ds#comments</comments>
		<pubDate>Mon, 13 Apr 2009 11:57:21 +0000</pubDate>
		<dc:creator>Wajahat</dc:creator>
				<category><![CDATA[Analysis Services]]></category>
		<category><![CDATA[Cube]]></category>
		<category><![CDATA[Dimension]]></category>
		<category><![CDATA[OLEDB]]></category>
		<category><![CDATA[SSAS]]></category>

		<guid isPermaLink="false">http://wajeehs.net/?p=1</guid>
		<description><![CDATA[Today I came across a strange issue in SSAS. I am building a cube that has a fact dimension, which is built using two different tables.
The table used to build the dimension (which is a customer dimension by definition) has to be used as a fact table as well because it stores certain customer specific  [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>Today I came across a strange issue in SSAS. I am building a cube that has a fact dimension, which is built using two different tables.</p>
<p>The table used to build the dimension (which is a customer dimension by definition) has to be used as a fact table as well because it stores certain customer specific  information that can be used in conjunction with other measures to perform certain calculations.</p>
<p>One of the attributes in the dimension though needs to be referenced from another table that resides in a different database.</p>
<p>It all works fine during the design of the cube, as SSAS allows you to build dimensions from multiple tables, as they can all be pulled together in the Data Source View (DSV).</p>
<p>The trouble starts, however, when you attempt to process the dimension built through multiple sources. As the data is being retreived from two different sources, SQL attempts to use the <code>OPENROWSET</code> function.</p>
<p>However, because the SQL Server Native Provider does not support the <code>OPENROWSET</code> function, it will return the following error:</p>
<p><code>'OLE DB error: OLE DB or ODBC error: Out-of-process use of OLE DB provider "SQLNCLI.1" with SQL Server is not supported.; 42000.'</code></p>
<p>While searching for a solution online, I came across multiple posts recommending to <code>'deselect'</code> the materialize option in the define relationship window (in the dimension usage tab).</p>
<p>This, however, is an option only when there is a &#8216;referenced&#8217; relationship between a dimension and the fact table.</p>
<p>Deselecting the materialize option in this case will prevent SQL from performing the join and therefore the <code>OPENROWSET</code> function will not be used.</p>
<p>However, this could lead to undesirable results and could have performance implications as well.</p>
<p>In addition to this, it does&#8217;nt solve the problem in situations where referencing is not defined at the design level.</p>
<p>For instance, in my case, the two table were referenced within a dimension and the dimension itself (which was composed of two tables in DSV) had a regular relationship with the fact table. </p>
<p>In such instances it is best to use an OLEDB provider instead of the Native SQL Server provider to build the data sources.</p>
]]></content:encoded>
			<wfw:commentRss>http://wajeehs.net/1/ssas_multiple_ds/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

