<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:copyright="http://blogs.law.harvard.edu/tech/rss" xmlns:image="http://purl.org/rss/1.0/modules/image/">
    <channel>
        <title>SQLServer</title>
        <link>http://geekswithblogs.net/ManicArchitect/category/10870.aspx</link>
        <description>SQLServer</description>
        <language>en-US</language>
        <copyright>James Rogers</copyright>
        <managingEditor>rogers.james@gmail.com</managingEditor>
        <generator>Subtext Version 0.0.0.0</generator>
        <item>
            <title>SSAS, MPP and PDW</title>
            <link>http://geekswithblogs.net/ManicArchitect/archive/2011/10/13/147299.aspx</link>
            <description>&lt;p&gt; &lt;/p&gt;
&lt;div style="margin: 0in; font-size: 11pt"&gt;I cut my DBA teeth on IBM's DB2 UDB EEE (enough acronyms) back in the 90's. I have always appreciated the scalability that is available with a MPP architecture. So a couple of years ago I was excited to hear that SQL Server was going to have a MPP architecture available. Now I am at SQLPass Summit 2011 and seeing the PDW (Parallel Data Warehouse) and the hardware offerings by Dell and HP to scale that up and out. However, I was disappointed to learn that this technology does not extend to Analysis Services.&lt;/div&gt;
&lt;div style="margin: 0in; font-size: 11pt"&gt;     I spend a great deal of my time tuning SSAS and can say that it scales very well as is and there is a plethora of information out there to facilitate those efforts. However, let's dream a little here. Imagine a multi-node/single-instance/shared-nothing installation of SSAS. You can distribute/partition the cubes across the nodes and then within the nodes in a manner that allows you to isolate hot-spots of data on their own hardware so that data can stay cached. Meanwhile, other queries on data that is less-often accessed or more ad-hoc in nature can process with resources allocated on separate nodes for that and the majority of queries do not suffer as much from cache turnover and the overall system load. Ahhh, it is good to dream. We could take that a step further and wish that would could mix Vertipaq storage for that more frequently used/"hot" data node and traditional Analysis Services storage for the other data where aggregations may have more value in helping the queries. Additionally, processing of mining models could be further isolated from ongoing activities and processing activities could take advantage of the MPP architecture and resulting parallelism to allow for more processing in shorter time than on a similar, single box solution. Could even go further and dedicate a node to ROLAP partitions for more real-time requirements while limiting the burden of such queries on the overall system performance.&lt;/div&gt;
&lt;div style="margin: 0in; font-size: 11pt"&gt;     I realize that MS probably doesn't have much of a target market for such dreams but it would be cool nonetheless and provide some real scalability options for big data analytics implementations. Like always, the devil is in the details. OK - back to reality.&lt;/div&gt; &lt;img src="http://geekswithblogs.net/ManicArchitect/aggbug/147299.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>James Rogers</dc:creator>
            <guid>http://geekswithblogs.net/ManicArchitect/archive/2011/10/13/147299.aspx</guid>
            <pubDate>Fri, 14 Oct 2011 00:01:32 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/ManicArchitect/comments/147299.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/ManicArchitect/archive/2011/10/13/147299.aspx#feedback</comments>
            <slash:comments>2</slash:comments>
            <wfw:commentRss>http://geekswithblogs.net/ManicArchitect/comments/commentRss/147299.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/ManicArchitect/services/trackbacks/147299.aspx</trackback:ping>
        </item>
        <item>
            <title>Analysis Services (SSAS) - Unexpected Internal Error when processing (ProcessUpdate).  Workaround/Resolution</title>
            <link>http://geekswithblogs.net/ManicArchitect/archive/2010/12/20/143184.aspx</link>
            <description>&lt;p&gt; /* EDIT - This problem has been fixed in the latest SQL Server 2008 R2 Cumulative Update package. It was identified that changing the aggregation design without reprocessing the aggregations prior to a ProcessUpdate on the dimensions causes this problem and it is a bug */&lt;/p&gt;
&lt;div style="margin: 0in; font-size: 11pt"&gt;Many implementations require the use of ProcessUpdate to support Type 1 slowly changing dimensions. ProcessUpdate drops all of the affected indexes and aggregations in partitions affected by data that changes in the Dimension on which the ProcessUpdate is being performed. Twice now I have had situations where the processing fails with "Internal error: An unexpected exception occurred." Any subsequent ProcessUpdate processing will also fail with the same error. In talking with Microsoft the issue is corrupt indexes for the Dimension(s) being processed in the partitions of the affected measure group. I cannot guarantee that the following will correct your problem but it did in my case and saved us quite a bit of down time.&lt;/div&gt;
&lt;div style="margin: 0in; font-size: 11pt"&gt; &lt;/div&gt;
&lt;div style="margin: 0in; font-size: 11pt"&gt;Workaround: ProcessIndexes on the entire cube that is being processed and throwing the error. This corrected the problem on both 2008 and 2008 R2.&lt;/div&gt;
&lt;div style="margin: 0in; font-size: 11pt"&gt; &lt;/div&gt;
&lt;div style="margin: 0in; font-size: 11pt"&gt;Pros: &lt;/div&gt;
&lt;ol type="1" style="font-style: normal; margin-top: 0in; unicode-bidi: embed; direction: ltr; margin-bottom: 0in; margin-left: 0.375in; font-size: 11pt; font-weight: normal"&gt;
    &lt;li value="1" style="margin-top: 0px; margin-bottom: 0px; vertical-align: middle"&gt;&lt;span style="font-style: normal; font-size: 11pt; font-weight: normal"&gt;Does not require a complete rebuild of the data (ProcessFull) for either the Dimension or Cube.&lt;/span&gt;&lt;/li&gt;
    &lt;li style="margin-top: 0px; margin-bottom: 0px; vertical-align: middle"&gt;&lt;span style="font-size: 11pt"&gt;User access can continue while this ProcessIndexes in underway.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div style="margin: 0in 0in 0in 0.375in; font-size: 11pt"&gt; &lt;/div&gt;
&lt;div style="margin: 0in; font-size: 11pt"&gt;Cons:&lt;/div&gt;
&lt;ol type="1" style="font-style: normal; margin-top: 0in; unicode-bidi: embed; direction: ltr; margin-bottom: 0in; margin-left: 0.375in; font-size: 11pt; font-weight: normal"&gt;
    &lt;li value="1" style="margin-top: 0px; margin-bottom: 0px; vertical-align: middle"&gt;&lt;span style="font-style: normal; font-size: 11pt; font-weight: normal"&gt;Can take a long time, especially on large cubes with many partitions, dimensions and/or aggregations.&lt;/span&gt;&lt;/li&gt;
    &lt;li style="margin-top: 0px; margin-bottom: 0px; vertical-align: middle"&gt;&lt;span style="font-size: 11pt"&gt;Query Performance is usually severely impacted due to the memory and CPU requirements for Aggregation and Index building&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div style="margin: 0in 0in 0in 0.375in; font-size: 11pt"&gt; &lt;/div&gt;
&lt;div style="margin: 0in; font-size: 8pt"&gt;&amp;lt;Batch xmlns="&lt;a href="http://schemas.microsoft.com/analysisservices/2003/engine"&gt;http://schemas.microsoft.com/analysisservices/2003/engine&lt;/a&gt;"&amp;gt;&lt;/div&gt;
&lt;div style="margin: 0in; font-size: 8pt"&gt; &amp;lt;Parallel&amp;gt;&lt;/div&gt;
&lt;div style="margin: 0in; font-size: 8pt"&gt;    &amp;lt;Process xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ddl2="http://schemas.microsoft.com/analysisservices/2003/engine/2" xmlns:ddl2_2="http://schemas.microsoft.com/analysisservices/2003/engine/2/2" xmlns:ddl100_100="http://schemas.microsoft.com/analysisservices/2008/engine/100/100" xmlns:ddl200="http://schemas.microsoft.com/analysisservices/2010/engine/200" xmlns:ddl200_200="http://schemas.microsoft.com/analysisservices/2010/engine/200/200"&amp;gt;&lt;/div&gt;
&lt;div style="margin: 0in; font-size: 8pt"&gt;      &amp;lt;Object&amp;gt;&lt;/div&gt;
&lt;div style="margin: 0in; font-size: 8pt"&gt;        &amp;lt;DatabaseID&amp;gt;MyDatabase&amp;lt;/DatabaseID&amp;gt;&lt;/div&gt;
&lt;div style="margin: 0in; font-size: 8pt"&gt;        &amp;lt;CubeID&amp;gt;MyCube&amp;lt;/CubeID&amp;gt;&lt;/div&gt;
&lt;div style="margin: 0in; font-size: 8pt"&gt;      &amp;lt;/Object&amp;gt;&lt;/div&gt;
&lt;div style="margin: 0in; font-size: 8pt"&gt;      &amp;lt;Type&amp;gt;ProcessIndexes&amp;lt;/Type&amp;gt;&lt;/div&gt;
&lt;div style="margin: 0in; font-size: 8pt"&gt;      &amp;lt;WriteBackTableCreation&amp;gt;UseExisting&amp;lt;/WriteBackTableCreation&amp;gt;&lt;/div&gt;
&lt;div style="margin: 0in; font-size: 8pt"&gt;    &amp;lt;/Process&amp;gt;&lt;/div&gt;
&lt;div style="margin: 0in; font-size: 8pt"&gt; &amp;lt;/Parallel&amp;gt;&lt;/div&gt;
&lt;div style="margin: 0in; font-size: 8pt"&gt;&amp;lt;/Batch&amp;gt;&lt;/div&gt;
&lt;div style="margin: 0in; font-size: 11pt"&gt; &lt;/div&gt;
&lt;div style="margin: 0in; font-size: 11pt"&gt;The cube where the corruption exists can be found by having Profiler running while the ProcessUpdate is executing. The first partition that displays the "The Job has ended in failure." message in the TextData column will be part of the cube/measuregroup that has the corruption. You can try to run ProcessIndexes on just that measure group. This may correct the problem and save additional time if you have other large measure groups in the cube that are not affected by the corruption.&lt;/div&gt;
&lt;div style="margin: 0in; font-size: 11pt"&gt; &lt;/div&gt;
&lt;div style="margin: 0in; font-size: 11pt"&gt;Remember to execute your normal ProcessUpdate batch after the successful completion of the ProcessIndexes. The ProcessIndexes does not pick up data changes.&lt;/div&gt;
&lt;div style="margin: 0in; font-size: 11pt"&gt; &lt;/div&gt;
&lt;div style="margin: 0in; font-size: 11pt"&gt;Things that did not work:&lt;/div&gt;
&lt;ol type="1" style="font-style: normal; margin-top: 0in; unicode-bidi: embed; direction: ltr; margin-bottom: 0in; margin-left: 0.375in; font-size: 11pt; font-weight: normal"&gt;
    &lt;li value="1" style="margin-top: 0px; margin-bottom: 0px; vertical-align: middle"&gt;&lt;span style="font-style: normal; font-size: 11pt; font-weight: normal"&gt;ProcessClearIndexes - why this doesn't work and ProcessIndexes does is unclear at this point.&lt;/span&gt;&lt;/li&gt;
    &lt;li style="margin-top: 0px; margin-bottom: 0px; vertical-align: middle"&gt;&lt;span style="font-size: 11pt"&gt;ProcessFull on the partition in question. In my latest case, this would clear up the problem for that partition. However, the next partition the ProcessUpdate touched that had data in it would generate and error. This leads me to believe the corruption problem will exist in all partitions in the affected measure group that have data in them.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div style="margin: 0in 0in 0in 0.375in; font-size: 11pt"&gt; &lt;/div&gt;
&lt;div style="margin: 0in; font-size: 11pt"&gt;NOTE: I experience this problem in both a SQL 2008 and SQL 2008 R2 Analysis Services environment, on separate built from the same relational database. This leads me to believe that some data condition in the tables used for the Dimension processing caused the corruption since the two environments were on physically separate hardware. I am waiting on Microsoft to analyze the dumps to give us more insight into what actually caused the corruption and will update this post accordingly.&lt;/div&gt; &lt;img src="http://geekswithblogs.net/ManicArchitect/aggbug/143184.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>James Rogers</dc:creator>
            <guid>http://geekswithblogs.net/ManicArchitect/archive/2010/12/20/143184.aspx</guid>
            <pubDate>Mon, 20 Dec 2010 17:51:05 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/ManicArchitect/comments/143184.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/ManicArchitect/archive/2010/12/20/143184.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/ManicArchitect/comments/commentRss/143184.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/ManicArchitect/services/trackbacks/143184.aspx</trackback:ping>
        </item>
        <item>
            <title>SQL Azure shows promise for small data applications - not there for BI yet.</title>
            <link>http://geekswithblogs.net/ManicArchitect/archive/2009/11/04/135995.aspx</link>
            <description>&lt;p&gt;  &lt;/p&gt;
&lt;div style="FONT-SIZE: 9pt; MARGIN: 0in 0in 0in 0.375in"&gt;I am currently sitting in a seminar on BI in the Cloud by John Welch at the PASS Summit 2009.  SQL Server Azure looks promising for a variety of applications.  Currently it only supports SQL Server relational database services but future plans to include the BI stack of SQL Server. &lt;/div&gt;
&lt;div style="FONT-SIZE: 9pt; MARGIN: 0in 0in 0in 0.375in"&gt;           I have yet to see how loading of data is handled and security is handled but it seems to have a lot of potential for small data sets (&amp;lt; 10 GB).  &lt;/div&gt;
&lt;div style="FONT-SIZE: 9pt; MARGIN: 0in 0in 0in 0.375in"&gt; &lt;/div&gt;
&lt;div style="FONT-SIZE: 9pt; MARGIN: 0in 0in 0in 0.375in"&gt;Couple of points:&lt;/div&gt;
&lt;ol style="MARGIN-TOP: 0in; FONT-SIZE: 9pt; MARGIN-BOTTOM: 0in; MARGIN-LEFT: 0.375in; DIRECTION: ltr; unicode-bidi: embed" type="1"&gt;
    &lt;li style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; VERTICAL-ALIGN: middle" value="1"&gt;&lt;span style="FONT-SIZE: 9pt"&gt;Apparently data manipulation is slower than normal SQL Server.  &lt;/span&gt;&lt;/li&gt;
    &lt;li style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; VERTICAL-ALIGN: middle" value="2"&gt;&lt;span style="FONT-SIZE: 9pt"&gt;Queries are limited to 5 minutes&lt;/span&gt; &lt;/li&gt;
    &lt;li style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; VERTICAL-ALIGN: middle" value="3"&gt;&lt;span style="FONT-SIZE: 9pt"&gt;Max database size is 10GB&lt;/span&gt; &lt;/li&gt;
    &lt;li style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; VERTICAL-ALIGN: middle" value="4"&gt;&lt;span style="FONT-SIZE: 9pt"&gt;Bulk Insert not available yet but available in an upcoming CTP&lt;/span&gt; &lt;/li&gt;
    &lt;li style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; VERTICAL-ALIGN: middle" value="5"&gt;&lt;span style="FONT-SIZE: 9pt"&gt;No control over physical database implementation (files,filegroups,partitions, etc…)&lt;/span&gt; &lt;/li&gt;
    &lt;li style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; VERTICAL-ALIGN: middle" value="6"&gt;&lt;span style="FONT-SIZE: 9pt"&gt;No Windows auth supported&lt;/span&gt; &lt;/li&gt;
&lt;/ol&gt; &lt;img src="http://geekswithblogs.net/ManicArchitect/aggbug/135995.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>James Rogers</dc:creator>
            <guid>http://geekswithblogs.net/ManicArchitect/archive/2009/11/04/135995.aspx</guid>
            <pubDate>Thu, 05 Nov 2009 00:49:22 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/ManicArchitect/comments/135995.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/ManicArchitect/archive/2009/11/04/135995.aspx#feedback</comments>
            <slash:comments>1</slash:comments>
            <wfw:commentRss>http://geekswithblogs.net/ManicArchitect/comments/commentRss/135995.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/ManicArchitect/services/trackbacks/135995.aspx</trackback:ping>
        </item>
    </channel>
</rss>
