<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet type='text/xsl' href='http://jesseorosz.spaces.live.com/mmm2008-07-24_12.50/rsspretty.aspx?rssquery=en-US;http%3a%2f%2fjesseorosz.spaces.live.com%2ffeed.rss' version='1.0'?><rss version="2.0" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:msn="http://schemas.microsoft.com/msn/spaces/2005/rss" xmlns:live="http://schemas.microsoft.com/live/spaces/2006/rss" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:cf="http://www.microsoft.com/schemas/rss/core/2005" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Jesse Orosz: SQL Server Analysis Services Blog</title><description>Analysis Services 2000 and 2005</description><link>http://jesseorosz.spaces.live.com/</link><language>en-US</language><pubDate>Wed, 27 Aug 2008 22:41:54 GMT</pubDate><lastBuildDate>Wed, 27 Aug 2008 22:41:54 GMT</lastBuildDate><generator>Microsoft Spaces v1.1</generator><docs>http://www.rssboard.org/rss-specification</docs><ttl>60</ttl><live:identity><live:id>-2079821278116685873</live:id><live:alias>jesseorosz</live:alias></live:identity><image><title>Jesse Orosz: SQL Server Analysis Services Blog</title><url>http://byfiles.storage.live.com/y1p6jNPJ4aI5iPS2J7zOIKAIHBizpBQfCDLJ-hUnBad0okOSP8SnBnnvA</url><link>http://jesseorosz.spaces.live.com/</link></image><cf:listinfo><cf:group ns="http://schemas.microsoft.com/live/spaces/2006/rss" element="typelabel" label="Type" /><cf:group ns="http://schemas.microsoft.com/live/spaces/2006/rss" element="tag" label="Tag" /><cf:group element="category" label="Category" /><cf:sort element="pubDate" label="Date" data-type="date" default="true" /><cf:sort element="title" label="Title" data-type="string" /><cf:sort ns="http://purl.org/rss/1.0/modules/slash/" element="comments" label="Comments" data-type="number" /></cf:listinfo><item><title>No cost beta 70-452: Designing a Business Intelligence Infrastructure Using Microsoft SQL Server 2008</title><link>http://jesseorosz.spaces.live.com/Blog/cns!E322FD91218E57CF!493.entry</link><description>&lt;div&gt;&lt;br&gt;&lt;a href="http://blogs.msdn.com/gerryo/archive/2008/08/08/sql-server-2008-beta-exam-71-452-designing-a-business-intelligence-infrastructure-using-microsoft-sql-server-2008.aspx"&gt;http://blogs.msdn.com/gerryo/archive/2008/08/08/sql-server-2008-beta-exam-71-452-designing-a-business-intelligence-infrastructure-using-microsoft-sql-server-2008.aspx&lt;/a&gt;&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;
&lt;p&gt;You are invited to take beta exam 71-452: Designing a Business Intelligence Infrastructure Using Microsoft SQL Server 2008. If you pass the beta exam, the exam credit will be added to your transcript and you will not need to take the exam in its released form. The results will &lt;b&gt;not&lt;/b&gt; appear on your transcript until several weeks after the final form of the exam is released. The 71-xxx identifier is used for registering for beta versions of MCP exams, when the exam is released in its final form the 70-xxx identifier is used for registration.
&lt;p&gt;71-452: Designing a Business Intelligence Infrastructure Using Microsoft SQL Server 2008 counts as credit towards the following certification(s).
&lt;p&gt;· Microsoft Certified IT Professional: Business Intelligence Developer 2008. In order to earn this certification you must also pass exam 70-448: TS: Microsoft SQL Server 2008, Business Intelligence Development and Maintenance. 
&lt;p&gt;Find exam preparation information: &lt;a href="http://www.microsoft.com/learning/exams/70-452.mspx"&gt;&lt;u&gt;&lt;font color="#0000ff"&gt;http://www.microsoft.com/learning/exams/70-452.mspx&lt;/font&gt;&lt;/u&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;p&gt;Registration begins: August 8, 2008
&lt;p&gt;Beta exam period runs: August 13, 2008– September 10, 2008
&lt;p&gt;&lt;b&gt;Registration Information&lt;/b&gt;
&lt;p&gt;&lt;strong&gt;Please use the following promotional code when registering for the exam: 3568C&lt;/strong&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;br&gt;You must register at least 24 hours prior to taking the exam.
&lt;p&gt;To register in North America, please call:
&lt;p&gt;· Prometric: (800) 755-EXAM (800-755-3926)
&lt;p&gt;Outside the U.S./Canada, please contact:
&lt;p&gt;· Prometric: &lt;a href="http://www.register.prometric.com/ClientInformation.asp"&gt;&lt;u&gt;&lt;font color="#0000ff"&gt;http://www.register.prometric.com/ClientInformation.asp&lt;/font&gt;&lt;/u&gt;&lt;/a&gt;&lt;/div&gt;&lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=-2079821278116685873&amp;page=RSS%3a+No+cost+beta+70-452%3a+Designing+a+Business+Intelligence+Infrastructure+Using+Microsoft+SQL+Server+2008&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=jesseorosz.spaces.live.com&amp;amp;GT1=jesseorosz"&gt;</description><comments>http://jesseorosz.spaces.live.com/Blog/cns!E322FD91218E57CF!493.entry#comment</comments><guid isPermaLink="true">http://jesseorosz.spaces.live.com/Blog/cns!E322FD91218E57CF!493.entry</guid><pubDate>Tue, 19 Aug 2008 16:42:52 GMT</pubDate><slash:comments>1</slash:comments><msn:type>blogentry</msn:type><live:type>blogentry</live:type><live:typelabel>Blog entry</live:typelabel><wfw:commentRss>http://jesseorosz.spaces.live.com/blog/cns!E322FD91218E57CF!493/comments/feed.rss</wfw:commentRss><wfw:comment>http://jesseorosz.spaces.live.com/Blog/cns!E322FD91218E57CF!493.entry#comment</wfw:comment><dcterms:modified>2008-08-19T16:42:52Z</dcterms:modified></item><item><title>Take the beta 71-448 for free</title><link>http://jesseorosz.spaces.live.com/Blog/cns!E322FD91218E57CF!476.entry</link><description>&lt;div&gt; &lt;/div&gt;
&lt;div&gt;Had the chance to go take the beta 71-448 for free this morning. Took me about an hour and a half. Since the exam is still in beta you won't receive your score for at least a few weeks. Bummer. &lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;Definitely worth a shot, especially if you've never had the opportunity to take a MS exam test. &lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;Only good until 7/31.&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;-----------------------------------------------------------------------------&lt;/div&gt;
&lt;h3&gt;71-448 - Promo code B6543&lt;/h3&gt;
&lt;p&gt;You are invited to take beta exam 71-448: TS: Microsoft SQL Server 2008, Business Intelligence Development and Maintenance. You were specifically chosen to participate in this beta because of your current Microsoft Certification status or previous participation with Microsoft Learning. If you pass the beta exam, the exam credit will be added to your transcript and you will not need to take the exam in its released form. The 71-xxx identifier is used for registering for beta versions of MCP exams, when the exam is released in its final form the 70-xxx identifier is used for registration. &lt;br&gt;By participating in beta exams, you have the opportunity to provide the Microsoft Certification program with feedback about exam content, which is integral to development of exams in their released version. We depend on the contributions of experienced IT professionals and developers as we continually improve exam content and maintain the value of Microsoft certifications. 
&lt;p&gt;71-448: TS: Microsoft SQL Server 2008, Business Intelligence Development and Maintenance counts as credit towards the following certification(s). 
&lt;p&gt;· Microsoft Certified Technology Specialist: SQL Server 2008, Business Intelligence Development and Maintenance 
&lt;hr align=center width="100%" size=1&gt;

&lt;p&gt; &lt;b&gt;Availability&lt;/b&gt; 
&lt;p&gt;Registration begins: June 15, 2008 
&lt;p&gt;Beta exam period runs: June 16, 2008– July 31, 2008 
&lt;p&gt;Receiving this invitation does not guarantee you a seat in the beta; we recommend that you register immediately. Beta exams have limited availability and are operated under a first-come-first-served basis. Once all beta slots are filled, no additional seats will be offered. 
&lt;p&gt;Testing is held at Prometric testing centers worldwide, although this exam may not be available in all countries (see Regional Restrictions).  All testing centers will have the capability to offer this exam in its live version. 
&lt;p&gt;Regional Restrictions: India, Pakistan, China 
&lt;hr align=center width="100%" size=1&gt;

&lt;p&gt;&lt;a title=ECABAAAA&gt;&lt;/a&gt;&lt;b&gt;Registration Information&lt;/b&gt; 
&lt;p&gt;You must register at least 24 hours prior to taking the exam. &lt;br&gt;Please use the following promotional code when registering for the exam: 943F6 &lt;br&gt;Receiving this invitation does not guarantee you a seat in the beta; we recommend that you register immediately. 
&lt;p&gt;To register in North America, please call: 
&lt;p&gt;Prometric: (800) 755-EXAM (800-755-3926) 
&lt;p&gt;Outside the U.S./Canada, please contact: 
&lt;p&gt;Prometric: &lt;a href="http://www.register.prometric.com/ClientInformation.asp"&gt;&lt;u&gt;&lt;font color="#0000ff"&gt;http://www.register.prometric.com/ClientInformation.asp&lt;/font&gt;&lt;/u&gt;&lt;/a&gt; 
&lt;p&gt;----------------------------------------------------------------------------- 
&lt;p&gt;&lt;br&gt;More info here: &lt;a href="http://blogs.msdn.com/gerryo/"&gt;http://blogs.msdn.com/gerryo/&lt;/a&gt; 
&lt;p&gt; &lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=-2079821278116685873&amp;page=RSS%3a+Take+the+beta+71-448+for+free&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=jesseorosz.spaces.live.com&amp;amp;GT1=jesseorosz"&gt;</description><comments>http://jesseorosz.spaces.live.com/Blog/cns!E322FD91218E57CF!476.entry#comment</comments><guid isPermaLink="true">http://jesseorosz.spaces.live.com/Blog/cns!E322FD91218E57CF!476.entry</guid><pubDate>Mon, 21 Jul 2008 21:55:48 GMT</pubDate><slash:comments>0</slash:comments><msn:type>blogentry</msn:type><live:type>blogentry</live:type><live:typelabel>Blog entry</live:typelabel><wfw:commentRss>http://jesseorosz.spaces.live.com/blog/cns!E322FD91218E57CF!476/comments/feed.rss</wfw:commentRss><wfw:comment>http://jesseorosz.spaces.live.com/Blog/cns!E322FD91218E57CF!476.entry#comment</wfw:comment><dcterms:modified>2008-07-21T21:59:19Z</dcterms:modified></item><item><title>Microsoft BI Conference 2008 October 6-8 - Seattle, WA</title><link>http://jesseorosz.spaces.live.com/Blog/cns!E322FD91218E57CF!475.entry</link><description>&lt;div&gt;&lt;br&gt;Registration is now open for the 2008 BI Conference here in Seattle. I was able to &lt;a href="http://jesseorosz.spaces.live.com/blog/cns!E322FD91218E57CF!270.entry" target="_blank"&gt;attend last year&lt;/a&gt; and to say it was worth it would be an understatement. Definitely attend if the opportunity presents itself. &lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;With &lt;a href="http://summit2008.sqlpass.org/" target="_blank"&gt;SQL PASS also taking place in Seattle&lt;/a&gt;, it's quite a busy few months in the SQL Server world here.&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;Register by August 8th you'll be able to get it at the $995 price, after the 8th it goes up to $1295.&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;&lt;a href="http://www.msbiconference.com/pages/registration.aspx"&gt;http://www.msbiconference.com/pages/registration.aspx&lt;/a&gt;&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;If anyone needs tips on where to stay in the Seattle area (I live a seven minute walk from the convention center), let me know.&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt; &lt;/div&gt;&lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=-2079821278116685873&amp;page=RSS%3a+Microsoft+BI+Conference+2008+October+6-8+-+Seattle%2c+WA&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=jesseorosz.spaces.live.com&amp;amp;GT1=jesseorosz"&gt;</description><comments>http://jesseorosz.spaces.live.com/Blog/cns!E322FD91218E57CF!475.entry#comment</comments><guid isPermaLink="true">http://jesseorosz.spaces.live.com/Blog/cns!E322FD91218E57CF!475.entry</guid><pubDate>Mon, 14 Jul 2008 17:41:48 GMT</pubDate><slash:comments>0</slash:comments><msn:type>blogentry</msn:type><live:type>blogentry</live:type><live:typelabel>Blog entry</live:typelabel><wfw:commentRss>http://jesseorosz.spaces.live.com/blog/cns!E322FD91218E57CF!475/comments/feed.rss</wfw:commentRss><wfw:comment>http://jesseorosz.spaces.live.com/Blog/cns!E322FD91218E57CF!475.entry#comment</wfw:comment><dcterms:modified>2008-07-14T17:42:15Z</dcterms:modified></item><item><title>AMO - Delete All Partitions From a Database</title><link>http://jesseorosz.spaces.live.com/Blog/cns!E322FD91218E57CF!448.entry</link><description>&lt;div&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;span&gt;&lt;font color="#000000"&gt;&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;br&gt;From time to time I'll need to recreate the dev/beta environment and I have to do that from production. I want an exact copy of production minus all the partitions that have been created with the exception of the template partitions. 
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;  
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;At first I would go in and change the XMLA script manually to remove those partitions. However, if there were a lot of measuregroups (50-100), this could take upwards of an hour. Being that it was such a pain I probably didn't keep dev and beta as up-to-date as I should have. 
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;  
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;An Analysis Services Stored Procedure is perfect to handle this task. Works beautifully and what took me an hour to do before now takes 30 seconds. 
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;  
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;I decided to use arrays within the procedure even though you could write the proc without them. 
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;  
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;  
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;br&gt;  
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;span&gt;&lt;font color="#000000"&gt;&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;*objDatabase is a database object I've set in another function 
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;  
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;span&gt;&lt;font color="#000000"&gt;&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;  
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;span&gt;&lt;font color="#000000"&gt;  &lt;/font&gt;&lt;/span&gt;&lt;span style="color:blue"&gt;Public&lt;/span&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="color:blue"&gt;Sub&lt;/span&gt;&lt;font color="#000000"&gt; DeleteAllPartitions()&lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;  
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;span&gt;&lt;font color="#000000"&gt;      &lt;/font&gt;&lt;/span&gt;&lt;span style="color:blue"&gt;Dim&lt;/span&gt;&lt;font color="#000000"&gt; oCube &lt;/font&gt;&lt;span style="color:blue"&gt;As&lt;/span&gt;&lt;font color="#000000"&gt; Cube&lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;span&gt;&lt;font color="#000000"&gt;      &lt;/font&gt;&lt;/span&gt;&lt;span style="color:blue"&gt;Dim&lt;/span&gt;&lt;font color="#000000"&gt; oMeasureGroup &lt;/font&gt;&lt;span style="color:blue"&gt;As&lt;/span&gt;&lt;font color="#000000"&gt; MeasureGroup&lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;span&gt;&lt;font color="#000000"&gt;      &lt;/font&gt;&lt;/span&gt;&lt;span style="color:blue"&gt;Dim&lt;/span&gt;&lt;font color="#000000"&gt; oPartition &lt;/font&gt;&lt;span style="color:blue"&gt;As&lt;/span&gt;&lt;font color="#000000"&gt; Partition&lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;span&gt;&lt;font color="#000000"&gt;      &lt;/font&gt;&lt;/span&gt;&lt;span style="color:blue"&gt;Dim&lt;/span&gt;&lt;font color="#000000"&gt; i &lt;/font&gt;&lt;span style="color:blue"&gt;As&lt;/span&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="color:blue"&gt;Integer&lt;/span&gt;&lt;/span&gt; 
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;span&gt;&lt;font color="#000000"&gt;      &lt;/font&gt;&lt;/span&gt;&lt;span style="color:blue"&gt;Dim&lt;/span&gt;&lt;font color="#000000"&gt; j &lt;/font&gt;&lt;span style="color:blue"&gt;As&lt;/span&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="color:blue"&gt;Integer&lt;/span&gt;&lt;/span&gt; 
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;span&gt;&lt;font color="#000000"&gt;      &lt;/font&gt;&lt;/span&gt;&lt;span style="color:blue"&gt;Dim&lt;/span&gt;&lt;font color="#000000"&gt; k &lt;/font&gt;&lt;span style="color:blue"&gt;As&lt;/span&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="color:blue"&gt;Integer&lt;/span&gt;&lt;/span&gt; 
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;span&gt;&lt;font color="#000000"&gt;      &lt;/font&gt;&lt;/span&gt;&lt;span style="color:blue"&gt;Dim&lt;/span&gt;&lt;font color="#000000"&gt; AryCubes &lt;/font&gt;&lt;span style="color:blue"&gt;As&lt;/span&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="color:blue"&gt;String&lt;/span&gt;&lt;font color="#000000"&gt;()&lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;span&gt;&lt;font color="#000000"&gt;      &lt;/font&gt;&lt;/span&gt;&lt;span style="color:blue"&gt;Dim&lt;/span&gt;&lt;font color="#000000"&gt; AryCubesSize &lt;/font&gt;&lt;span style="color:blue"&gt;As&lt;/span&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="color:blue"&gt;Integer&lt;/span&gt;&lt;/span&gt; 
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;span&gt;&lt;font color="#000000"&gt;      &lt;/font&gt;&lt;/span&gt;&lt;span style="color:blue"&gt;Dim&lt;/span&gt;&lt;font color="#000000"&gt; AryMeasureGroups &lt;/font&gt;&lt;span style="color:blue"&gt;As&lt;/span&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="color:blue"&gt;String&lt;/span&gt;&lt;font color="#000000"&gt;()&lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;span&gt;&lt;font color="#000000"&gt;      &lt;/font&gt;&lt;/span&gt;&lt;span style="color:blue"&gt;Dim&lt;/span&gt;&lt;font color="#000000"&gt; AryMeasureGroupsSize &lt;/font&gt;&lt;span style="color:blue"&gt;As&lt;/span&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="color:blue"&gt;Integer&lt;/span&gt;&lt;/span&gt; 
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;span&gt;&lt;font color="#000000"&gt;      &lt;/font&gt;&lt;/span&gt;&lt;span style="color:blue"&gt;Dim&lt;/span&gt;&lt;font color="#000000"&gt; AryPartitions &lt;/font&gt;&lt;span style="color:blue"&gt;As&lt;/span&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="color:blue"&gt;String&lt;/span&gt;&lt;font color="#000000"&gt;()&lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;span&gt;&lt;font color="#000000"&gt;      &lt;/font&gt;&lt;/span&gt;&lt;span style="color:blue"&gt;Dim&lt;/span&gt;&lt;font color="#000000"&gt; AryPartitionsSize &lt;/font&gt;&lt;span style="color:blue"&gt;As&lt;/span&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="color:blue"&gt;Integer&lt;/span&gt;&lt;/span&gt; 
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;span&gt;&lt;font color="#000000"&gt;&lt;br&gt;      &lt;/font&gt;&lt;/span&gt;&lt;span style="color:green"&gt;'Create the cube array (AryCubes)&lt;/span&gt;&lt;/span&gt; 
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;font color="#000000"&gt;&lt;span&gt;      &lt;/span&gt;AryCubesSize = (objDatabase.Cubes.Count - 1)&lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;span&gt;&lt;font color="#000000"&gt;      &lt;/font&gt;&lt;/span&gt;&lt;span style="color:blue"&gt;ReDim&lt;/span&gt;&lt;font color="#000000"&gt; AryCubes(AryCubesSize)&lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;span&gt;&lt;font color="#000000"&gt;      &lt;/font&gt;&lt;/span&gt;&lt;span style="color:green"&gt;'Loop through each of the cubes in the database and throw the cube names in an array&lt;/span&gt;&lt;/span&gt; 
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;span&gt;&lt;font color="#000000"&gt;      &lt;/font&gt;&lt;/span&gt;&lt;span style="color:blue"&gt;For&lt;/span&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="color:blue"&gt;Each&lt;/span&gt;&lt;font color="#000000"&gt; oCube &lt;/font&gt;&lt;span style="color:blue"&gt;In&lt;/span&gt;&lt;font color="#000000"&gt; objDatabase.Cubes&lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;font color="#000000"&gt;&lt;span&gt;          &lt;/span&gt;AryCubes(i) = oCube.Name&lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;font color="#000000"&gt;&lt;span&gt;          &lt;/span&gt;i = i + 1&lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;span&gt;&lt;font color="#000000"&gt;      &lt;/font&gt;&lt;/span&gt;&lt;span style="color:blue"&gt;Next&lt;/span&gt;&lt;font color="#000000"&gt; oCube&lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;span&gt;&lt;font color="#000000"&gt;      &lt;/font&gt;&lt;/span&gt;&lt;span style="color:green"&gt;'Loop through the cube array&lt;/span&gt;&lt;/span&gt; 
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;span&gt;&lt;font color="#000000"&gt;      &lt;/font&gt;&lt;/span&gt;&lt;span style="color:blue"&gt;For&lt;/span&gt;&lt;font color="#000000"&gt; i = 0 &lt;/font&gt;&lt;span style="color:blue"&gt;To&lt;/span&gt;&lt;font color="#000000"&gt; AryCubesSize&lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;span&gt;&lt;font color="#000000"&gt;          &lt;/font&gt;&lt;/span&gt;&lt;span style="color:green"&gt;'Set the cube object to the current item in AryCubes&lt;/span&gt;&lt;/span&gt; 
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;font color="#000000"&gt;&lt;span&gt;          &lt;/span&gt;oCube = objDatabase.Cubes.GetByName(AryCubes(i))&lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;span&gt;&lt;font color="#000000"&gt;          &lt;/font&gt;&lt;/span&gt;&lt;span style="color:green"&gt;'Create the measuregroup array (AryMeasureGroups)&lt;/span&gt;&lt;/span&gt; 
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;font color="#000000"&gt;&lt;span&gt;          &lt;/span&gt;AryMeasureGroupsSize = (oCube.MeasureGroups.Count - 1)&lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;span&gt;&lt;font color="#000000"&gt;          &lt;/font&gt;&lt;/span&gt;&lt;span style="color:blue"&gt;ReDim&lt;/span&gt;&lt;font color="#000000"&gt; AryMeasureGroups(AryMeasureGroupsSize)&lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;span&gt;&lt;font color="#000000"&gt;          &lt;/font&gt;&lt;/span&gt;&lt;span style="color:green"&gt;'Set j back to zero for the current item&lt;/span&gt;&lt;/span&gt; 
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;font color="#000000"&gt;&lt;span&gt;          &lt;/span&gt;j = 0&lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;font color="#000000"&gt;&lt;span&gt;       &lt;/span&gt;&lt;span&gt;   &lt;/span&gt;&lt;/font&gt;&lt;span style="color:green"&gt;'Loop through each of the measure groups in the cube and throw the measure group names in an array&lt;/span&gt;&lt;/span&gt; 
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;span&gt;&lt;font color="#000000"&gt;          &lt;/font&gt;&lt;/span&gt;&lt;span style="color:blue"&gt;For&lt;/span&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="color:blue"&gt;Each&lt;/span&gt;&lt;font color="#000000"&gt; oMeasureGroup &lt;/font&gt;&lt;span style="color:blue"&gt;In&lt;/span&gt;&lt;font color="#000000"&gt; oCube.MeasureGroups&lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;font color="#000000"&gt;&lt;span&gt;              &lt;/span&gt;AryMeasureGroups(j) = oMeasureGroup.Name&lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;font color="#000000"&gt;&lt;span&gt;              &lt;/span&gt;j = j + 1&lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;span&gt;&lt;font color="#000000"&gt;          &lt;/font&gt;&lt;/span&gt;&lt;span style="color:blue"&gt;Next&lt;/span&gt;&lt;font color="#000000"&gt; oMeasureGroup&lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;span&gt;&lt;font color="#000000"&gt;          &lt;/font&gt;&lt;/span&gt;&lt;span style="color:green"&gt;'Loop through the measure group array&lt;/span&gt;&lt;/span&gt; 
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;span&gt;&lt;font color="#000000"&gt;          &lt;/font&gt;&lt;/span&gt;&lt;span style="color:blue"&gt;For&lt;/span&gt;&lt;font color="#000000"&gt; j = 0 &lt;/font&gt;&lt;span style="color:blue"&gt;To&lt;/span&gt;&lt;font color="#000000"&gt; AryMeasureGroupsSize&lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;span&gt;&lt;font color="#000000"&gt;              &lt;/font&gt;&lt;/span&gt;&lt;span style="color:green"&gt;'Set the measure group object to the current item in AryMeasureGroups&lt;/span&gt;&lt;/span&gt; 
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;font color="#000000"&gt;&lt;span&gt;              &lt;/span&gt;oMeasureGroup = oCube.MeasureGroups.GetByName(AryMeasureGroups(j))&lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;span&gt;&lt;font color="#000000"&gt;              &lt;/font&gt;&lt;/span&gt;&lt;span style="color:green"&gt;'If the measuregroup is linked then don't delete partitions&lt;/span&gt;&lt;/span&gt; 
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;span&gt;&lt;font color="#000000"&gt;              &lt;/font&gt;&lt;/span&gt;&lt;span style="color:blue"&gt;If&lt;/span&gt;&lt;font color="#000000"&gt; oMeasureGroup.IsLinked = &lt;/font&gt;&lt;span style="color:blue"&gt;False&lt;/span&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="color:blue"&gt;Then&lt;/span&gt;&lt;/span&gt; 
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;color:blue;font-family:'Courier New'"&gt; &lt;/span&gt; 
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;span&gt;&lt;font color="#000000"&gt;                  &lt;/font&gt;&lt;/span&gt;&lt;span style="color:green"&gt;'Create the partition array (AryPartitions)&lt;/span&gt;&lt;/span&gt; 
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;font color="#000000"&gt;&lt;span&gt;                  &lt;/span&gt;AryPartitionsSize = (oMeasureGroup.Partitions.Count - 1)&lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;span&gt;&lt;font color="#000000"&gt;                  &lt;/font&gt;&lt;/span&gt;&lt;span style="color:blue"&gt;ReDim&lt;/span&gt;&lt;font color="#000000"&gt; AryPartitions(AryPartitionsSize)&lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;span&gt;&lt;font color="#000000"&gt;                  &lt;/font&gt;&lt;/span&gt;&lt;span style="color:green"&gt;'Set k back to zero for current item&lt;/span&gt;&lt;/span&gt; 
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;font color="#000000"&gt;&lt;span&gt;                  &lt;/span&gt;k = 0&lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;span&gt;&lt;font color="#000000"&gt;                  &lt;/font&gt;&lt;/span&gt;&lt;span style="color:green"&gt;'Loop through each of the partitions in the measure group and throw the name in an array&lt;/span&gt;&lt;/span&gt; 
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;span&gt;&lt;font color="#000000"&gt;                  &lt;/font&gt;&lt;/span&gt;&lt;span style="color:blue"&gt;For&lt;/span&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="color:blue"&gt;Each&lt;/span&gt;&lt;font color="#000000"&gt; oPartition &lt;/font&gt;&lt;span style="color:blue"&gt;In&lt;/span&gt;&lt;font color="#000000"&gt; oMeasureGroup.Partitions&lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;font color="#000000"&gt;&lt;span&gt;                      &lt;/span&gt;AryPartitions(k) = oPartition.Name&lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;font color="#000000"&gt;&lt;span&gt;                      &lt;/span&gt;k = k + 1&lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;font color="#000000"&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;              &lt;/span&gt;&lt;/font&gt;&lt;span style="color:blue"&gt;Next&lt;/span&gt;&lt;font color="#000000"&gt; oPartition&lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;span&gt;&lt;font color="#000000"&gt;                  &lt;/font&gt;&lt;/span&gt;&lt;span style="color:green"&gt;'Loop through the partition array and drop the partition if its not the template partition&lt;/span&gt;&lt;/span&gt; 
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;span&gt;&lt;font color="#000000"&gt;                  &lt;/font&gt;&lt;/span&gt;&lt;span style="color:blue"&gt;For&lt;/span&gt;&lt;font color="#000000"&gt; k = 0 &lt;/font&gt;&lt;span style="color:blue"&gt;To&lt;/span&gt;&lt;font color="#000000"&gt; AryPartitionsSize&lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;font style="background-color:#ffff00"&gt;&lt;span&gt;&lt;font color="#000000"&gt;                      &lt;/font&gt;&lt;/span&gt;&lt;span style="color:blue"&gt;If&lt;/span&gt;&lt;font color="#000000"&gt; AryPartitions(k) like &lt;/font&gt;&lt;span style="color:#a31515"&gt;&amp;quot;template&amp;quot;&lt;/span&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="color:blue"&gt;Then          &lt;/span&gt;&lt;/font&gt;&lt;/span&gt;
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;font color="#000000"&gt;&lt;span&gt;                          &lt;/span&gt;oPartition = oMeasureGroup.Partitions.GetByName(AryPartitions(k))&lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;font color="#000000"&gt;&lt;span&gt;                          &lt;/span&gt;oPartition.Drop()&lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;span&gt;&lt;font color="#000000"&gt;                      &lt;/font&gt;&lt;/span&gt;&lt;span style="color:blue"&gt;End&lt;/span&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="color:blue"&gt;If&lt;/span&gt;&lt;/span&gt; 
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;span&gt;&lt;font color="#000000"&gt;                  &lt;/font&gt;&lt;/span&gt;&lt;span style="color:blue"&gt;Next&lt;/span&gt;&lt;font color="#000000"&gt; k&lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;span&gt;&lt;font color="#000000"&gt;              &lt;/font&gt;&lt;/span&gt;&lt;span style="color:blue"&gt;End&lt;/span&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="color:blue"&gt;If&lt;/span&gt;&lt;/span&gt; 
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;color:blue;font-family:'Courier New'"&gt; &lt;/span&gt; 
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;span&gt;&lt;font color="#000000"&gt;          &lt;/font&gt;&lt;/span&gt;&lt;span style="color:blue"&gt;Next&lt;/span&gt;&lt;font color="#000000"&gt; j&lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;span&gt;&lt;font color="#000000"&gt;      &lt;/font&gt;&lt;/span&gt;&lt;span style="color:blue"&gt;Next&lt;/span&gt;&lt;font color="#000000"&gt; i&lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0in 0in 10pt"&gt;&lt;span style="font-size:8pt;line-height:115%;font-family:'Courier New'"&gt;&lt;span&gt;&lt;font color="#000000"&gt;  &lt;/font&gt;&lt;/span&gt;&lt;span style="color:blue"&gt;End&lt;/span&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="color:blue"&gt;Sub&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:8pt;line-height:115%"&gt;&lt;/span&gt;&lt;/div&gt;&lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=-2079821278116685873&amp;page=RSS%3a+AMO+-+Delete+All+Partitions+From+a+Database&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=jesseorosz.spaces.live.com&amp;amp;GT1=jesseorosz"&gt;</description><comments>http://jesseorosz.spaces.live.com/Blog/cns!E322FD91218E57CF!448.entry#comment</comments><guid isPermaLink="true">http://jesseorosz.spaces.live.com/Blog/cns!E322FD91218E57CF!448.entry</guid><pubDate>Wed, 11 Jun 2008 21:04:58 GMT</pubDate><slash:comments>1</slash:comments><msn:type>blogentry</msn:type><live:type>blogentry</live:type><live:typelabel>Blog entry</live:typelabel><wfw:commentRss>http://jesseorosz.spaces.live.com/blog/cns!E322FD91218E57CF!448/comments/feed.rss</wfw:commentRss><wfw:comment>http://jesseorosz.spaces.live.com/Blog/cns!E322FD91218E57CF!448.entry#comment</wfw:comment><dcterms:modified>2008-06-12T04:59:49Z</dcterms:modified></item><item><title>Star vs. Snowflake in OLAP Land</title><link>http://jesseorosz.spaces.live.com/Blog/cns!E322FD91218E57CF!437.entry</link><description>&lt;div&gt;&lt;br&gt;About six months ago I had a discussion with another guy about what my preferred data warehouse schema was: snowflake or star. Without hesitation I said snowflake. He looked at me with befuddlement and asked why. I told him that OLAP processes dimensions more efficiently against a snowflaked schema instead of a star. We had nearly a twenty minute discussion exactly why Analysis Services likes snowflakes better than stars but I failed to convince him.  He firmly believed that the star schema was superior and anything short of me taking his firstborn hostage wouldn't change his belief in that. Star vs snowflake usually initiates that type of steadfastness.&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;To back up my believe I put together a test. I created a dimension with three levels with each level having two attributes that were outside of the &amp;quot;Advertiser-Ad Campaign-Banner Ad&amp;quot; hierarchy. A total of nine attributes in the dimension.&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;1. Advertiser (15k rows)&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;PaymentType (2 rows) 
&lt;li&gt;Status (2 rows)&lt;/ul&gt;
&lt;div&gt;2. Sales Campaign (500k rows)&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;Category(16 rows) 
&lt;li&gt;TargetCountry (225 rows)&lt;/ul&gt;
&lt;div&gt;3. Banner Ad (12 million rows) &lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;Size (8 rows) 
&lt;li&gt;AdType (4 rows)&lt;/ul&gt;
&lt;div&gt;An Advertiser has Sales Campaigns and a Sales Campaign has Banner Ads with Banner Ads being the attribute key. &lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;-In star schema land this would all be put into a single table having nine columns across.&lt;br&gt;&lt;/div&gt;
&lt;div&gt;-In the snowflake world this ends up in nine different tables.  There'd be an Advertiser table with three columns: Advertiser/PaymentType/Status, a PaymentType table with a single column PaymentType, a Status table with a single column Status, ect (generically speaking).&lt;br&gt;&lt;br&gt;&lt;/div&gt;
&lt;div&gt;This dimension has more levels and more attributes but I decided to pare it down for simplicity. The test was run on an Intel Xeon 2.8 with 4GB of RAM with SQL Server RDBMS and Analysis Services on the same box. I created two different dimensions: one based off of a star schema and the other off of a snowflake schema (separate DSV's). Each dimension was processed nine times (three Process Full, six Process Update) and the times averaged.&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;The star based dimension averaged a total of 8:35 per process vs 6:42 for the snowflaked based dimension. Why the big difference?&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;Each attribute runs a SELECT DISTINCT against the source dimensional table. Take the AdType attribute under the Banner Ad level. Against a star schema this SELECT DISTINCT query would execute against a table with 12 million rows, however, against a snowflake schema it would execute on a table with only four rows. &lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;For smaller dimensions this doesn't matter much, however if you have large dimensions and update quite frequently such as we do (hourly) a snowflake schema can make a world of difference. &lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;Snowflakes are harder to read and tougher for the ETL guy to write, however dimensions process much faster against them. Also, if you're building a dimension using a wizard (shame on you!) the wizard will be able to detect natural hierarchies whereas a star schema won't. &lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;Of course this test was done in an afternoon and not under the most scrutinizing conditions so I'm curious as to what others have experienced or think about the subject. What are your thoughts?&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;A Trio of Interesting Snowflakes by Ralph Kimball:&lt;br&gt;&lt;a href="http://www.intelligententerprise.com/010629/warehouse1_1.jhtml;jsessionid=Y5BJ04CASJZKMQSNDLOSKHSCJUNN2JVN?_requestid=147558"&gt;http://www.intelligententerprise.com/010629/warehouse1_1.jhtml;jsessionid=Y5BJ04CASJZKMQSNDLOSKHSCJUNN2JVN?_requestid=147558&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;  &lt;/div&gt;
&lt;div&gt;OLAP: How to Index Star/Snowflake Schema Data: &lt;br&gt;&lt;a href="http://support.microsoft.com/kb/199132"&gt;http://support.microsoft.com/kb/199132&lt;/a&gt;&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt; &lt;/div&gt;&lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=-2079821278116685873&amp;page=RSS%3a+Star+vs.+Snowflake+in+OLAP+Land&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=jesseorosz.spaces.live.com&amp;amp;GT1=jesseorosz"&gt;</description><comments>http://jesseorosz.spaces.live.com/Blog/cns!E322FD91218E57CF!437.entry#comment</comments><guid isPermaLink="true">http://jesseorosz.spaces.live.com/Blog/cns!E322FD91218E57CF!437.entry</guid><pubDate>Wed, 28 May 2008 21:31:43 GMT</pubDate><slash:comments>2</slash:comments><msn:type>blogentry</msn:type><live:type>blogentry</live:type><live:typelabel>Blog entry</live:typelabel><wfw:commentRss>http://jesseorosz.spaces.live.com/blog/cns!E322FD91218E57CF!437/comments/feed.rss</wfw:commentRss><wfw:comment>http://jesseorosz.spaces.live.com/Blog/cns!E322FD91218E57CF!437.entry#comment</wfw:comment><dcterms:modified>2008-05-28T21:32:25Z</dcterms:modified></item><item><title>Analysis Services Books</title><link>http://jesseorosz.spaces.live.com/Blog/cns!E322FD91218E57CF!367.entry</link><description>&lt;div&gt;&lt;br&gt;Surprisingly I get a fair amount of hits for books related to Analysis Services. Being that I've bought nearly all of them, I thought I'd give a short opinion on each of them.&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;1. &lt;a href="http://www.amazon.com/gp/redirect.html%3FASIN=0976635305%26tag=jesseoroszsan-20%26lcode=sp1%26cID=2025%26ccmID=165953%26location=/o/ASIN/0976635305%253FSubscriptionId=1KDHEGDEXZNBKYAEECR2" target="_blank"&gt;Applied Microsoft Analysis Services 2005 - Teo Lachev&lt;/a&gt;&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;&lt;img src="http://ecx.images-amazon.com/images/I/51HFSRVZNVL._AA240_.jpg"&gt;&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;This was the first book released on Analysis Services 2005 and it's pretty decent. It can't be used as a reference book since it's not deep enough; it's more of a tutorial book.&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;If you're looking to learn Analysis Services 2005, I'd start with this book. It has easy to follow exercises and isn't overwhelming (for a beginner) like a few of the other books.&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;2. &lt;a href="http://www.amazon.com/gp/redirect.html%3FASIN=0672327821%26tag=jesseoroszsan-20%26lcode=sp1%26cID=2025%26ccmID=165953%26location=/o/ASIN/0672327821%253FSubscriptionId=1KDHEGDEXZNBKYAEECR2" target="_blank"&gt;Microsoft SQL Server 2005 Analysis Services - Edward Melomed, Irina Gorbach, Alexander Berger, Py Bateman&lt;/a&gt;&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;&lt;img src="http://ecx.images-amazon.com/images/I/41W4SR8QWFL._BO2,204,203,200_PIsitb-dp-500-arrow,TopRight,45,-64_OU01_AA240_SH20_.jpg"&gt;&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;This is THE BOOK for SSAS2005.  Excellent book, and the one I use the most. It was written by long time members (before MS bought the technology) of the SSAS team over at MS and it's obvious that's the case.&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;There are entire chapters devoted to AMO, Memory Managment, Query Execution, and the Physical Data Model. These chapters cover subjects you won't find on MSDN or BOL. Gets really into the internals of Analysis Services.&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;Get this book. If I could only have one book on my shelf this would be this one. I'm currently reading it cover to cover.&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;FYI: The link for the Foodmart 2005 sample are no longer valid, so get them here: &lt;a href="http://www.e-tservice.com/downloads.html"&gt;http://www.e-tservice.com/downloads.html&lt;/a&gt;&lt;/div&gt;
&lt;div&gt; &lt;br&gt;&lt;br&gt;&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;3. &lt;a href="http://www.amazon.com/gp/redirect.html%3FASIN=0764579185%26tag=msnspaces04-20%26lcode=sp1%26cID=2025%26ccmID=165953%26location=/o/ASIN/0764579185%253FSubscriptionId=1KDHEGDEXZNBKYAEECR2" target="_blank"&gt;Professional SQL Server Analysis Services 2005 with MDX by Sivakumar Harinath, Stephen R. Quinn&lt;/a&gt;  &lt;/div&gt;
&lt;p&gt;&lt;img src="http://ecx.images-amazon.com/images/I/5108TYsI62L._BO2,204,203,200_PIsitb-dp-500-arrow,TopRight,45,-64_OU01_AA240_SH20_.jpg"&gt; &lt;br&gt;&lt;br&gt;I'd place this book between Applied Microsoft Analysis Services 2005 (Lachev) and Microsoft SQL Server 2005 Analysis Services (Melomed, Gorbach, Berger, Bateman). Not too deep, not too easy. A good medium. 
&lt;p&gt;IMO Chapter 13 about Performance Optimization is the most worthwhile section of this book.&lt;br&gt;&lt;br&gt;If you're looking for a book about MDX don't be mislead by the title. There are only a couple chapters discussing MDX and you'll be better off buying a MDX specific book.&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;4. &lt;a href="http://www.amazon.com/gp/redirect.html%3FASIN=0735621993%26tag=jesseoroszsan-20%26lcode=sp1%26cID=2025%26ccmID=165953%26location=/o/ASIN/0735621993%253FSubscriptionId=1KDHEGDEXZNBKYAEECR2" target="_blank"&gt;Microsoft SQL Server 2005 Analysis Services Step by Step - Reed Jacobson, Stacia Misner, Hitachi Consulting&lt;/a&gt; 
&lt;p&gt;&lt;img src="http://ecx.images-amazon.com/images/I/41RpwqL4KYL._BO2,204,203,200_PIsitb-dp-500-arrow,TopRight,45,-64_OU01_AA240_SH20_.jpg"&gt; &lt;br&gt;&lt;br&gt;Don't have much to say on this one since I don't own it. During one of my walks downtown to get a cookie at Barnes and Nobles (they have the best chocolate chip cookies BTW) I did get a chance to flip through it. Eh, it's OK. If you're just looking to learn the real basics it works. However, if you're doing anything outside of the scope of building a simple cube I'd stay away. Start with the Teo Lachev book (Applied Microsoft Analysis Services 2005) instead. Probably a perfect book to use to study for the MS Certification tests.&lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=-2079821278116685873&amp;page=RSS%3a+Analysis+Services+Books&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=jesseorosz.spaces.live.com&amp;amp;GT1=jesseorosz"&gt;</description><comments>http://jesseorosz.spaces.live.com/Blog/cns!E322FD91218E57CF!367.entry#comment</comments><guid isPermaLink="true">http://jesseorosz.spaces.live.com/Blog/cns!E322FD91218E57CF!367.entry</guid><pubDate>Thu, 03 Apr 2008 22:27:30 GMT</pubDate><slash:comments>1</slash:comments><msn:type>blogentry</msn:type><live:type>blogentry</live:type><live:typelabel>Blog entry</live:typelabel><wfw:commentRss>http://jesseorosz.spaces.live.com/blog/cns!E322FD91218E57CF!367/comments/feed.rss</wfw:commentRss><wfw:comment>http://jesseorosz.spaces.live.com/Blog/cns!E322FD91218E57CF!367.entry#comment</wfw:comment><dcterms:modified>2008-04-28T22:43:40Z</dcterms:modified></item><item><title>SQL Server 2008 Exam Changes</title><link>http://jesseorosz.spaces.live.com/Blog/cns!E322FD91218E57CF!362.entry</link><description>&lt;span style="font-size:8.5pt;color:#444444;font-family:'Verdana','sans-serif'"&gt;
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;br&gt;I had a few minutes this afternoon so I decided to watch the &lt;a href="https://www.livemeeting.com/cc/lmevents/view?id=msft020608pmlm&amp;amp;pw=ATT10273347" target="_blank"&gt;SQL Server 2008 Certification Live Meeting&lt;/a&gt;. 
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;  
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;The most interesting part, at least to me, were the numbers who had passed the various certifications: 
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;br&gt;&lt;/span&gt;  
&lt;ul&gt;
&lt;li&gt;
&lt;div style="margin:0in 0in 10pt;line-height:normal"&gt;&lt;font color="#bfbfbf"&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Verdana','sans-serif'"&gt;MCDBA 2000 - 149,590&lt;/span&gt;&lt;span style="font-size:8.5pt;color:#444444;font-family:'Verdana','sans-serif'"&gt;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;li&gt;
&lt;div style="margin:0in 0in 10pt;line-height:normal"&gt;&lt;font color="#bfbfbf"&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Verdana','sans-serif'"&gt;MCTS: SQL Server 2005 (70-431) - 24,939&lt;/span&gt;&lt;span style="font-size:8.5pt;color:#444444;font-family:'Verdana','sans-serif'"&gt;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;li&gt;
&lt;div style="margin:0in 0in 10pt;line-height:normal"&gt;&lt;font color="#bfbfbf"&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Verdana','sans-serif'"&gt;MCITP: Database Administrator (70-443, 70-444) - 4,006&lt;/span&gt;&lt;span style="font-size:8.5pt;color:#444444;font-family:'Verdana','sans-serif'"&gt;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;li&gt;
&lt;div style="margin:0in 0in 10pt;line-height:normal"&gt;&lt;font color="#bfbfbf"&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Verdana','sans-serif'"&gt;MCITP: Database Developer (70-441, 70-442) - 1,596&lt;/span&gt;&lt;span style="font-size:8.5pt;color:#444444;font-family:'Verdana','sans-serif'"&gt;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;li&gt;
&lt;div style="margin:0in 0in 10pt;line-height:normal"&gt;&lt;font color="#bfbfbf"&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Verdana','sans-serif'"&gt;MCTS: Business Intelligence (70-445) - 801&lt;/span&gt;&lt;span style="font-size:8.5pt;color:#444444;font-family:'Verdana','sans-serif'"&gt;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;li&gt;
&lt;div style="margin:0in 0in 10pt;line-height:normal"&gt;&lt;font color="#bfbfbf"&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Verdana','sans-serif'"&gt;MCITP: Business Intelligence Developer (70-446) - 364&lt;/span&gt;&lt;span style="font-size:8.5pt;color:#444444;font-family:'Verdana','sans-serif'"&gt;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;li&gt;
&lt;div style="margin:0in 0in 10pt;line-height:normal"&gt;&lt;font color="#bfbfbf"&gt;&lt;span style="font-size:8.5pt;color:black;font-family:'Verdana','sans-serif'"&gt;MCA Database (on campus in Redmond) - 10&lt;br&gt;&lt;/span&gt;&lt;span style="font-size:8.5pt;color:#444444;font-family:'Verdana','sans-serif'"&gt;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;/ul&gt;
&lt;p style="margin:0in 0in 10pt"&gt;From what I gathered, not much is going to change with the release of the 2008 certs. It will still only be two tests to receive your MCITP in BI. One thing I was hoping for were SSAS, SSRS, and SSIS independent tests. Not this time around. 
&lt;p style="margin:0in 0in 10pt"&gt;&lt;a href="http://www.microsoft.com/learning/exams/70-445.mspx" target="_blank"&gt;70-445: &lt;em&gt;SQL Server 2005, Business Intelligence Implementation and Maintenance&lt;/em&gt;&lt;/a&gt; is being replaced by 70-448: &lt;em&gt;SQL Server 2008, Business Intelligence Development and Maintenance&lt;/em&gt;. My guess is that the exams will differ as much as the title change. If you have the time, study for 70-445 now; no need to put it off for another six months. Beta exams will rollout in June with public consumption in August. No mention of the replacement for &lt;a href="http://www.microsoft.com/learning/exams/70-446.mspx" target="_blank"&gt;70-446&lt;/a&gt;.  
&lt;p style="margin:0in 0in 10pt"&gt;They also spoke about the MCA Program quite a bit. At only ten people currently having their MCA and it costing 25k a pop, it seems more of a novelty that anything. &lt;br&gt;
&lt;p style="margin:0in 0in 10pt"&gt;Trika's blog:  &lt;a href="http://blogs.msdn.com/trika/"&gt;http://blogs.msdn.com/trika/&lt;/a&gt;&lt;br&gt;Gerry's blog:  &lt;a href="http://blogs.msdn.com/gerryo"&gt;http://blogs.msdn.com/gerryo&lt;/a&gt;&lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=-2079821278116685873&amp;page=RSS%3a+SQL+Server+2008+Exam+Changes&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=jesseorosz.spaces.live.com&amp;amp;GT1=jesseorosz"&gt;</description><comments>http://jesseorosz.spaces.live.com/Blog/cns!E322FD91218E57CF!362.entry#comment</comments><guid isPermaLink="true">http://jesseorosz.spaces.live.com/Blog/cns!E322FD91218E57CF!362.entry</guid><pubDate>Wed, 20 Feb 2008 23:59:11 GMT</pubDate><slash:comments>0</slash:comments><msn:type>blogentry</msn:type><live:type>blogentry</live:type><live:typelabel>Blog entry</live:typelabel><wfw:commentRss>http://jesseorosz.spaces.live.com/blog/cns!E322FD91218E57CF!362/comments/feed.rss</wfw:commentRss><wfw:comment>http://jesseorosz.spaces.live.com/Blog/cns!E322FD91218E57CF!362.entry#comment</wfw:comment><dcterms:modified>2008-06-10T22:21:39Z</dcterms:modified></item><item><title>OLAPQueryLog StartTime is Wrong</title><link>http://jesseorosz.spaces.live.com/Blog/cns!E322FD91218E57CF!354.entry</link><description>&lt;div&gt;&lt;br&gt;I recently saw &lt;a href="http://www.microsoft.com/communities/newsgroups/en-us/default.aspx?dg=microsoft.public.sqlserver.olap&amp;amp;tid=e6058932-da96-43a9-b5c4-b29ef0b80908&amp;amp;cat=&amp;amp;lang=&amp;amp;cr=&amp;amp;sloc=&amp;amp;p=1" target="_blank"&gt;a post on the newgroup&lt;/a&gt; about the StartTime in the OLAPQueryLog being incorrect. We have the same problem here (StartTime is eight hours ahead) and it's something I accepted but never looked into the cause.&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;It appears the insert is using GetUTCDate, not GetDate. GetDate uses the OS time zone. I haven't found a way to change this behavior.&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;You could add another column to store the value, however I just wrote a view on top of the table. From what I can tell this &lt;em&gt;should (&lt;/em&gt;at least is does right now) handle daylight savings time correctly; hardcoding the hour difference may not.&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;color:blue;font-family:'Courier New'"&gt;SELECT&lt;/span&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;/span&gt;
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;font color="#000000"&gt;&lt;span&gt;       &lt;/span&gt;MSOLAP_Database&lt;/font&gt;&lt;span style="color:gray"&gt;,&lt;/span&gt;&lt;/span&gt; 
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;font color="#000000"&gt;&lt;span&gt;       &lt;/span&gt;MSOLAP_ObjectPath&lt;/font&gt;&lt;span style="color:gray"&gt;,&lt;/span&gt;&lt;/span&gt; 
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;font color="#000000"&gt;&lt;span&gt;       &lt;/span&gt;MSOLAP_User&lt;/font&gt;&lt;span style="color:gray"&gt;,&lt;/span&gt;&lt;/span&gt; 
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;font color="#000000"&gt;&lt;span&gt;       &lt;/span&gt;Dataset&lt;/font&gt;&lt;span style="color:gray"&gt;,&lt;/span&gt;&lt;/span&gt; 
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;span&gt;&lt;font color="#000000"&gt;       (&lt;/font&gt;&lt;/span&gt;&lt;span style="color:fuchsia"&gt;DATEADD&lt;/span&gt;&lt;span style="color:gray"&gt;(&lt;/span&gt;&lt;span style="color:blue"&gt;HOUR&lt;/span&gt;&lt;span style="color:gray"&gt;,(&lt;/span&gt;&lt;span style="color:fuchsia"&gt;DATEDIFF&lt;/span&gt;&lt;span style="color:gray"&gt;(&lt;/span&gt;&lt;span style="color:blue"&gt;HOUR&lt;/span&gt;&lt;span style="color:gray"&gt;,&lt;/span&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="color:fuchsia"&gt;GetUTCDate&lt;/span&gt;&lt;span style="color:gray"&gt;(),&lt;/span&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="color:fuchsia"&gt;GetDate&lt;/span&gt;&lt;span style="color:gray"&gt;()&lt;/span&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="color:gray"&gt;)),&lt;/span&gt;&lt;font color="#000000"&gt;StartTime)&lt;/font&gt;&lt;span style="color:gray"&gt;)&lt;/span&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="color:blue"&gt;as&lt;/span&gt;&lt;font color="#000000"&gt; StartTime&lt;/font&gt;&lt;span style="color:gray"&gt;,&lt;/span&gt;&lt;/span&gt; 
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;font color="#000000"&gt;&lt;span&gt;       &lt;/span&gt;Duration&lt;/font&gt;&lt;/span&gt; 
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;color:blue;font-family:'Courier New'"&gt;FROM&lt;/span&gt; 
&lt;p style="margin:0in 0in 10pt"&gt;&lt;span style="font-size:8pt;line-height:115%;font-family:'Courier New'"&gt;&lt;font color="#000000"&gt;&lt;span&gt;       &lt;/span&gt;OlapQueryLog&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;&lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=-2079821278116685873&amp;page=RSS%3a+OLAPQueryLog+StartTime+is+Wrong&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=jesseorosz.spaces.live.com&amp;amp;GT1=jesseorosz"&gt;</description><comments>http://jesseorosz.spaces.live.com/Blog/cns!E322FD91218E57CF!354.entry#comment</comments><guid isPermaLink="true">http://jesseorosz.spaces.live.com/Blog/cns!E322FD91218E57CF!354.entry</guid><pubDate>Thu, 14 Feb 2008 19:03:45 GMT</pubDate><slash:comments>0</slash:comments><msn:type>blogentry</msn:type><live:type>blogentry</live:type><live:typelabel>Blog entry</live:typelabel><wfw:commentRss>http://jesseorosz.spaces.live.com/blog/cns!E322FD91218E57CF!354/comments/feed.rss</wfw:commentRss><wfw:comment>http://jesseorosz.spaces.live.com/Blog/cns!E322FD91218E57CF!354.entry#comment</wfw:comment><dcterms:modified>2008-02-14T19:04:15Z</dcterms:modified></item><item><title>Calling MDX from a SQL Server Stored Procedure</title><link>http://jesseorosz.spaces.live.com/Blog/cns!E322FD91218E57CF!350.entry</link><description>&lt;div&gt; &lt;/div&gt;
&lt;div&gt;I work for an online media company which allows our customers to login to a website and check their numbers. For the last several years all their activity reports have been pointed at SQL Server aggregated tables. While this worked, it wasn't the ideal solution. Reports often timed out and the database server would have a high load throughout the day, specifically early month while everyone was checking month end numbers.&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;Eventually my boss approached me about speeding up the reports and possibly pointing them at a cube. However, there could be no changes to the report files or how the data was being called (no front end changes). All the modifications had to be done in the stored procedure. &lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;After initial testing, by pointing at cubes rather than aggregated tables, most of the reports would be sped up by a factor of 5-10x. A definite improvement and well worth the work involved.&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;Here are the steps I had to take in order for it to happen:&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;1. Read &lt;a href="http://support.microsoft.com/kb/931192"&gt;http://support.microsoft.com/kb/931192&lt;/a&gt; and install the hotfix on your dev box or desktop. You don't have to do this if you'll be working directly on the server. &lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;2. Follow the steps here: &lt;a href="http://jesseorosz.spaces.live.com/blog/cns!E322FD91218E57CF!329.entry"&gt;http://jesseorosz.spaces.live.com/blog/cns!E322FD91218E57CF!329.entry&lt;/a&gt;. Double hop authentication is funky with SSAS.&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;3. Create a linked server on the same server the stored procedure resides. Use the fully qualified domain name (not optional).&lt;/div&gt;
&lt;div&gt;&lt;br&gt;Example:&lt;br&gt;&lt;/div&gt;
&lt;div&gt;
&lt;p style="margin:0in 0in 0pt"&gt;&lt;span style="font-size:8pt;color:green;font-family:'Courier New'"&gt;/****** Object:  LinkedServer [MYCUBESERVER_SalesCubeDatabase]    Script Date: 02/12/2008 13:17:57 ******/&lt;/span&gt;&lt;span style="font-size:8pt;color:#444444;font-family:'Verdana','sans-serif'"&gt; &lt;/span&gt;
&lt;p style="margin:0in 0in 0pt"&gt;&lt;span style="font-size:8pt;color:blue;font-family:'Courier New'"&gt;EXEC&lt;/span&gt;&lt;span style="font-size:8pt;color:black;font-family:'Courier New'"&gt; master&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;.&lt;/span&gt;&lt;span style="font-size:8pt;color:black;font-family:'Courier New'"&gt;dbo&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;.&lt;/span&gt;&lt;span style="font-size:8pt;color:maroon;font-family:'Courier New'"&gt;sp_addlinkedserver&lt;/span&gt;&lt;span style="font-size:8pt;color:black;font-family:'Courier New'"&gt; @server &lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;=&lt;/span&gt;&lt;span style="font-size:8pt;color:black;font-family:'Courier New'"&gt; &lt;/span&gt;&lt;span style="font-size:8pt;color:red;font-family:'Courier New'"&gt;N'MYCUBESERVER_SalesCubeDatabase'&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;,&lt;/span&gt;&lt;span style="font-size:8pt;color:black;font-family:'Courier New'"&gt; @srvproduct&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;=&lt;/span&gt;&lt;span style="font-size:8pt;color:red;font-family:'Courier New'"&gt;N'cubes'&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;,&lt;/span&gt;&lt;span style="font-size:8pt;color:black;font-family:'Courier New'"&gt; @provider&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;=&lt;/span&gt;&lt;span style="font-size:8pt;color:red;font-family:'Courier New'"&gt;N'MSOLAP'&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;,&lt;/span&gt;&lt;span style="font-size:8pt;color:black;font-family:'Courier New'"&gt; @datasrc&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;=&lt;/span&gt;&lt;span style="font-size:8pt;color:red;font-family:'Courier New'"&gt;N'MYCUBESSERVER.IPADDY.COM'&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;,&lt;/span&gt;&lt;span style="font-size:8pt;color:black;font-family:'Courier New'"&gt; @location&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;=&lt;/span&gt;&lt;span style="font-size:8pt;color:red;font-family:'Courier New'"&gt;N'MYCUBESSERVER.IPADDY.COM'&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;,&lt;/span&gt;&lt;span style="font-size:8pt;color:black;font-family:'Courier New'"&gt; @catalog&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;=&lt;/span&gt;&lt;span style="font-size:8pt;color:red;font-family:'Courier New'"&gt;N'Sales Cube Database'&lt;/span&gt;&lt;span style="font-size:8pt;color:#444444;font-family:'Verdana','sans-serif'"&gt; &lt;/span&gt;
&lt;p style="margin:0in 0in 0pt"&gt;&lt;span style="font-size:8pt;color:black;font-family:'Courier New'"&gt; &lt;/span&gt;&lt;span style="font-size:8pt;color:green;font-family:'Courier New'"&gt;/* For security reasons the linked server remote logins password is changed with ######## */&lt;/span&gt;&lt;span style="font-size:8pt;color:#444444;font-family:'Verdana','sans-serif'"&gt; &lt;/span&gt;
&lt;p style="margin:0in 0in 0pt"&gt;&lt;span style="font-size:8pt;color:blue;font-family:'Courier New'"&gt;EXEC&lt;/span&gt;&lt;span style="font-size:8pt;color:black;font-family:'Courier New'"&gt; master&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;.&lt;/span&gt;&lt;span style="font-size:8pt;color:black;font-family:'Courier New'"&gt;dbo&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;.&lt;/span&gt;&lt;span style="font-size:8pt;color:maroon;font-family:'Courier New'"&gt;sp_addlinkedsrvlogin&lt;/span&gt;&lt;span style="font-size:8pt;color:black;font-family:'Courier New'"&gt; @rmtsrvname&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;=&lt;/span&gt;&lt;span style="font-size:8pt;color:red;font-family:'Courier New'"&gt;N'MYCUBESERVER_SalesCubeDatabase'&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;,&lt;/span&gt;&lt;span style="font-size:8pt;color:black;font-family:'Courier New'"&gt;@useself&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;=&lt;/span&gt;&lt;span style="font-size:8pt;color:red;font-family:'Courier New'"&gt;N'False'&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;,&lt;/span&gt;&lt;span style="font-size:8pt;color:black;font-family:'Courier New'"&gt;@locallogin&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;=NULL,&lt;/span&gt;&lt;span style="font-size:8pt;color:black;font-family:'Courier New'"&gt;@rmtuser&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;=NULL,&lt;/span&gt;&lt;span style="font-size:8pt;color:black;font-family:'Courier New'"&gt;@rmtpassword&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;=NULL&lt;/span&gt;&lt;span style="font-size:8pt;color:#444444;font-family:'Verdana','sans-serif'"&gt; &lt;/span&gt;
&lt;p style="margin:0in 0in 0pt"&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt; &lt;/span&gt;&lt;span style="font-size:8pt;color:#444444;font-family:'Verdana','sans-serif'"&gt; &lt;/span&gt;
&lt;p style="margin:0in 0in 0pt"&gt;&lt;span style="font-size:8pt;color:black;font-family:'Courier New'"&gt;GO&lt;/span&gt;&lt;span style="font-size:8pt;color:#444444;font-family:'Verdana','sans-serif'"&gt; &lt;/span&gt;
&lt;p style="margin:0in 0in 0pt"&gt;&lt;span style="font-size:8pt;color:blue;font-family:'Courier New'"&gt;EXEC&lt;/span&gt;&lt;span style="font-size:8pt;color:black;font-family:'Courier New'"&gt; master&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;.&lt;/span&gt;&lt;span style="font-size:8pt;color:black;font-family:'Courier New'"&gt;dbo&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;.&lt;/span&gt;&lt;span style="font-size:8pt;color:maroon;font-family:'Courier New'"&gt;sp_serveroption&lt;/span&gt;&lt;span style="font-size:8pt;color:black;font-family:'Courier New'"&gt; @server&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;=&lt;/span&gt;&lt;span style="font-size:8pt;color:red;font-family:'Courier New'"&gt;N'MYCUBESERVER_SalesCubeDatabase'&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;,&lt;/span&gt;&lt;span style="font-size:8pt;color:black;font-family:'Courier New'"&gt; @optname&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;=&lt;/span&gt;&lt;span style="font-size:8pt;color:red;font-family:'Courier New'"&gt;N'collation compatible'&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;,&lt;/span&gt;&lt;span style="font-size:8pt;color:black;font-family:'Courier New'"&gt; @optvalue&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;=&lt;/span&gt;&lt;span style="font-size:8pt;color:red;font-family:'Courier New'"&gt;N'false'&lt;/span&gt;&lt;span style="font-size:8pt;color:#444444;font-family:'Verdana','sans-serif'"&gt; &lt;/span&gt;
&lt;p style="margin:0in 0in 0pt"&gt;&lt;span style="font-size:8pt;color:black;font-family:'Courier New'"&gt;GO&lt;/span&gt;&lt;span style="font-size:8pt;color:#444444;font-family:'Verdana','sans-serif'"&gt; &lt;/span&gt;
&lt;p style="margin:0in 0in 0pt"&gt;&lt;span style="font-size:8pt;color:blue;font-family:'Courier New'"&gt;EXEC&lt;/span&gt;&lt;span style="font-size:8pt;color:black;font-family:'Courier New'"&gt; master&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;.&lt;/span&gt;&lt;span style="font-size:8pt;color:black;font-family:'Courier New'"&gt;dbo&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;.&lt;/span&gt;&lt;span style="font-size:8pt;color:maroon;font-family:'Courier New'"&gt;sp_serveroption&lt;/span&gt;&lt;span style="font-size:8pt;color:black;font-family:'Courier New'"&gt; @server&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;=&lt;/span&gt;&lt;span style="font-size:8pt;color:red;font-family:'Courier New'"&gt;N'MYCUBESERVER_SalesCubeDatabase'&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;,&lt;/span&gt;&lt;span style="font-size:8pt;color:black;font-family:'Courier New'"&gt; @optname&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;=&lt;/span&gt;&lt;span style="font-size:8pt;color:red;font-family:'Courier New'"&gt;N'data access'&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;,&lt;/span&gt;&lt;span style="font-size:8pt;color:black;font-family:'Courier New'"&gt; @optvalue&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;=&lt;/span&gt;&lt;span style="font-size:8pt;color:red;font-family:'Courier New'"&gt;N'true'&lt;/span&gt;&lt;span style="font-size:8pt;color:#444444;font-family:'Verdana','sans-serif'"&gt; &lt;/span&gt;
&lt;p style="margin:0in 0in 0pt"&gt;&lt;span style="font-size:8pt;color:black;font-family:'Courier New'"&gt;GO&lt;/span&gt;&lt;span style="font-size:8pt;color:#444444;font-family:'Verdana','sans-serif'"&gt; &lt;/span&gt;
&lt;p style="margin:0in 0in 0pt"&gt;&lt;span style="font-size:8pt;color:blue;font-family:'Courier New'"&gt;EXEC&lt;/span&gt;&lt;span style="font-size:8pt;color:black;font-family:'Courier New'"&gt; master&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;.&lt;/span&gt;&lt;span style="font-size:8pt;color:black;font-family:'Courier New'"&gt;dbo&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;.&lt;/span&gt;&lt;span style="font-size:8pt;color:maroon;font-family:'Courier New'"&gt;sp_serveroption&lt;/span&gt;&lt;span style="font-size:8pt;color:black;font-family:'Courier New'"&gt; @server&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;=&lt;/span&gt;&lt;span style="font-size:8pt;color:red;font-family:'Courier New'"&gt;N'MYCUBESERVER_SalesCubeDatabase'&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;,&lt;/span&gt;&lt;span style="font-size:8pt;color:black;font-family:'Courier New'"&gt; @optname&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;=&lt;/span&gt;&lt;span style="font-size:8pt;color:red;font-family:'Courier New'"&gt;N'dist'&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;,&lt;/span&gt;&lt;span style="font-size:8pt;color:black;font-family:'Courier New'"&gt; @optvalue&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;=&lt;/span&gt;&lt;span style="font-size:8pt;color:red;font-family:'Courier New'"&gt;N'false'&lt;/span&gt;&lt;span style="font-size:8pt;color:#444444;font-family:'Verdana','sans-serif'"&gt; &lt;/span&gt;
&lt;p style="margin:0in 0in 0pt"&gt;&lt;span style="font-size:8pt;color:black;font-family:'Courier New'"&gt;GO&lt;/span&gt;&lt;span style="font-size:8pt;color:#444444;font-family:'Verdana','sans-serif'"&gt; &lt;/span&gt;
&lt;p style="margin:0in 0in 0pt"&gt;&lt;span style="font-size:8pt;color:blue;font-family:'Courier New'"&gt;EXEC&lt;/span&gt;&lt;span style="font-size:8pt;color:black;font-family:'Courier New'"&gt; master&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;.&lt;/span&gt;&lt;span style="font-size:8pt;color:black;font-family:'Courier New'"&gt;dbo&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;.&lt;/span&gt;&lt;span style="font-size:8pt;color:maroon;font-family:'Courier New'"&gt;sp_serveroption&lt;/span&gt;&lt;span style="font-size:8pt;color:black;font-family:'Courier New'"&gt; @server&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;=&lt;/span&gt;&lt;span style="font-size:8pt;color:red;font-family:'Courier New'"&gt;N'MYCUBESERVER_SalesCubeDatabase'&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;,&lt;/span&gt;&lt;span style="font-size:8pt;color:black;font-family:'Courier New'"&gt; @optname&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;=&lt;/span&gt;&lt;span style="font-size:8pt;color:red;font-family:'Courier New'"&gt;N'pub'&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;,&lt;/span&gt;&lt;span style="font-size:8pt;color:black;font-family:'Courier New'"&gt; @optvalue&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;=&lt;/span&gt;&lt;span style="font-size:8pt;color:red;font-family:'Courier New'"&gt;N'false'&lt;/span&gt;&lt;span style="font-size:8pt;color:#444444;font-family:'Verdana','sans-serif'"&gt; &lt;/span&gt;
&lt;p style="margin:0in 0in 0pt"&gt;&lt;span style="font-size:8pt;color:black;font-family:'Courier New'"&gt;GO&lt;/span&gt;&lt;span style="font-size:8pt;color:#444444;font-family:'Verdana','sans-serif'"&gt; &lt;/span&gt;
&lt;p style="margin:0in 0in 0pt"&gt;&lt;span style="font-size:8pt;color:blue;font-family:'Courier New'"&gt;EXEC&lt;/span&gt;&lt;span style="font-size:8pt;color:black;font-family:'Courier New'"&gt; master&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;.&lt;/span&gt;&lt;span style="font-size:8pt;color:black;font-family:'Courier New'"&gt;dbo&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;.&lt;/span&gt;&lt;span style="font-size:8pt;color:maroon;font-family:'Courier New'"&gt;sp_serveroption&lt;/span&gt;&lt;span style="font-size:8pt;color:black;font-family:'Courier New'"&gt; @server&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;=&lt;/span&gt;&lt;span style="font-size:8pt;color:red;font-family:'Courier New'"&gt;N'MYCUBESERVER_SalesCubeDatabase'&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;,&lt;/span&gt;&lt;span style="font-size:8pt;color:black;font-family:'Courier New'"&gt; @optname&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;=&lt;/span&gt;&lt;span style="font-size:8pt;color:red;font-family:'Courier New'"&gt;N'rpc'&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;,&lt;/span&gt;&lt;span style="font-size:8pt;color:black;font-family:'Courier New'"&gt; @optvalue&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;=&lt;/span&gt;&lt;span style="font-size:8pt;color:red;font-family:'Courier New'"&gt;N'false'&lt;/span&gt;&lt;span style="font-size:8pt;color:#444444;font-family:'Verdana','sans-serif'"&gt; &lt;/span&gt;
&lt;p style="margin:0in 0in 0pt"&gt;&lt;span style="font-size:8pt;color:black;font-family:'Courier New'"&gt;GO&lt;/span&gt;&lt;span style="font-size:8pt;color:#444444;font-family:'Verdana','sans-serif'"&gt; &lt;/span&gt;
&lt;p style="margin:0in 0in 0pt"&gt;&lt;span style="font-size:8pt;color:blue;font-family:'Courier New'"&gt;EXEC&lt;/span&gt;&lt;span style="font-size:8pt;color:black;font-family:'Courier New'"&gt; master&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;.&lt;/span&gt;&lt;span style="font-size:8pt;color:black;font-family:'Courier New'"&gt;dbo&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;.&lt;/span&gt;&lt;span style="font-size:8pt;color:maroon;font-family:'Courier New'"&gt;sp_serveroption&lt;/span&gt;&lt;span style="font-size:8pt;color:black;font-family:'Courier New'"&gt; @server&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;=&lt;/span&gt;&lt;span style="font-size:8pt;color:red;font-family:'Courier New'"&gt;N'MYCUBESERVER_SalesCubeDatabase'&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;,&lt;/span&gt;&lt;span style="font-size:8pt;color:black;font-family:'Courier New'"&gt; @optname&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;=&lt;/span&gt;&lt;span style="font-size:8pt;color:red;font-family:'Courier New'"&gt;N'rpc out'&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;,&lt;/span&gt;&lt;span style="font-size:8pt;color:black;font-family:'Courier New'"&gt; @optvalue&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;=&lt;/span&gt;&lt;span style="font-size:8pt;color:red;font-family:'Courier New'"&gt;N'false'&lt;/span&gt;&lt;span style="font-size:8pt;color:#444444;font-family:'Verdana','sans-serif'"&gt; &lt;/span&gt;
&lt;p style="margin:0in 0in 0pt"&gt;&lt;span style="font-size:8pt;color:black;font-family:'Courier New'"&gt;GO&lt;/span&gt;&lt;span style="font-size:8pt;color:#444444;font-family:'Verdana','sans-serif'"&gt; &lt;/span&gt;
&lt;p style="margin:0in 0in 0pt"&gt;&lt;span style="font-size:8pt;color:blue;font-family:'Courier New'"&gt;EXEC&lt;/span&gt;&lt;span style="font-size:8pt;color:black;font-family:'Courier New'"&gt; master&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;.&lt;/span&gt;&lt;span style="font-size:8pt;color:black;font-family:'Courier New'"&gt;dbo&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;.&lt;/span&gt;&lt;span style="font-size:8pt;color:maroon;font-family:'Courier New'"&gt;sp_serveroption&lt;/span&gt;&lt;span style="font-size:8pt;color:black;font-family:'Courier New'"&gt; @server&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;=&lt;/span&gt;&lt;span style="font-size:8pt;color:red;font-family:'Courier New'"&gt;N'MYCUBESERVER_SalesCubeDatabase'&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;,&lt;/span&gt;&lt;span style="font-size:8pt;color:black;font-family:'Courier New'"&gt; @optname&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;=&lt;/span&gt;&lt;span style="font-size:8pt;color:red;font-family:'Courier New'"&gt;N'sub'&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;,&lt;/span&gt;&lt;span style="font-size:8pt;color:black;font-family:'Courier New'"&gt; @optvalue&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;=&lt;/span&gt;&lt;span style="font-size:8pt;color:red;font-family:'Courier New'"&gt;N'false'&lt;/span&gt;&lt;span style="font-size:8pt;color:#444444;font-family:'Verdana','sans-serif'"&gt; &lt;/span&gt;
&lt;p style="margin:0in 0in 0pt"&gt;&lt;span style="font-size:8pt;color:black;font-family:'Courier New'"&gt;GO&lt;/span&gt;&lt;span style="font-size:8pt;color:#444444;font-family:'Verdana','sans-serif'"&gt; &lt;/span&gt;
&lt;p style="margin:0in 0in 0pt"&gt;&lt;span style="font-size:8pt;color:blue;font-family:'Courier New'"&gt;EXEC&lt;/span&gt;&lt;span style="font-size:8pt;color:black;font-family:'Courier New'"&gt; master&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;.&lt;/span&gt;&lt;span style="font-size:8pt;color:black;font-family:'Courier New'"&gt;dbo&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;.&lt;/span&gt;&lt;span style="font-size:8pt;color:maroon;font-family:'Courier New'"&gt;sp_serveroption&lt;/span&gt;&lt;span style="font-size:8pt;color:black;font-family:'Courier New'"&gt; @server&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;=&lt;/span&gt;&lt;span style="font-size:8pt;color:red;font-family:'Courier New'"&gt;N'MYCUBESERVER_SalesCubeDatabase'&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;,&lt;/span&gt;&lt;span style="font-size:8pt;color:black;font-family:'Courier New'"&gt; @optname&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;=&lt;/span&gt;&lt;span style="font-size:8pt;color:red;font-family:'Courier New'"&gt;N'connect timeout'&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;,&lt;/span&gt;&lt;span style="font-size:8pt;color:black;font-family:'Courier New'"&gt; @optvalue&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;=&lt;/span&gt;&lt;span style="font-size:8pt;color:red;font-family:'Courier New'"&gt;N'0'&lt;/span&gt;&lt;span style="font-size:8pt;color:#444444;font-family:'Verdana','sans-serif'"&gt; &lt;/span&gt;
&lt;p style="margin:0in 0in 0pt"&gt;&lt;span style="font-size:8pt;color:black;font-family:'Courier New'"&gt;GO&lt;/span&gt;&lt;span style="font-size:8pt;color:#444444;font-family:'Verdana','sans-serif'"&gt; &lt;/span&gt;
&lt;p style="margin:0in 0in 0pt"&gt;&lt;span style="font-size:8pt;color:blue;font-family:'Courier New'"&gt;EXEC&lt;/span&gt;&lt;span style="font-size:8pt;color:black;font-family:'Courier New'"&gt; master&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;.&lt;/span&gt;&lt;span style="font-size:8pt;color:black;font-family:'Courier New'"&gt;dbo&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;.&lt;/span&gt;&lt;span style="font-size:8pt;color:maroon;font-family:'Courier New'"&gt;sp_serveroption&lt;/span&gt;&lt;span style="font-size:8pt;color:black;font-family:'Courier New'"&gt; @server&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;=&lt;/span&gt;&lt;span style="font-size:8pt;color:red;font-family:'Courier New'"&gt;N'MYCUBESERVER_SalesCubeDatabase'&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;,&lt;/span&gt;&lt;span style="font-size:8pt;color:black;font-family:'Courier New'"&gt; @optname&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;=&lt;/span&gt;&lt;span style="font-size:8pt;color:red;font-family:'Courier New'"&gt;N'collation name'&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;,&lt;/span&gt;&lt;span style="font-size:8pt;color:black;font-family:'Courier New'"&gt; @optvalue&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;=null&lt;/span&gt;&lt;span style="font-size:8pt;color:#444444;font-family:'Verdana','sans-serif'"&gt; &lt;/span&gt;
&lt;p style="margin:0in 0in 0pt"&gt;&lt;span style="font-size:8pt;color:black;font-family:'Courier New'"&gt;GO&lt;/span&gt;&lt;span style="font-size:8pt;color:#444444;font-family:'Verdana','sans-serif'"&gt; &lt;/span&gt;
&lt;p style="margin:0in 0in 0pt"&gt;&lt;span style="font-size:8pt;color:blue;font-family:'Courier New'"&gt;EXEC&lt;/span&gt;&lt;span style="font-size:8pt;color:black;font-family:'Courier New'"&gt; master&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;.&lt;/span&gt;&lt;span style="font-size:8pt;color:black;font-family:'Courier New'"&gt;dbo&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;.&lt;/span&gt;&lt;span style="font-size:8pt;color:maroon;font-family:'Courier New'"&gt;sp_serveroption&lt;/span&gt;&lt;span style="font-size:8pt;color:black;font-family:'Courier New'"&gt; @server&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;=&lt;/span&gt;&lt;span style="font-size:8pt;color:red;font-family:'Courier New'"&gt;N'MYCUBESERVER_SalesCubeDatabase'&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;,&lt;/span&gt;&lt;span style="font-size:8pt;color:black;font-family:'Courier New'"&gt; @optname&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;=&lt;/span&gt;&lt;span style="font-size:8pt;color:red;font-family:'Courier New'"&gt;N'lazy schema validation'&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;,&lt;/span&gt;&lt;span style="font-size:8pt;color:black;font-family:'Courier New'"&gt; @optvalue&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;=&lt;/span&gt;&lt;span style="font-size:8pt;color:red;font-family:'Courier New'"&gt;N'false'&lt;/span&gt;&lt;span style="font-size:8pt;color:#444444;font-family:'Verdana','sans-serif'"&gt; &lt;/span&gt;
&lt;p style="margin:0in 0in 0pt"&gt;&lt;span style="font-size:8pt;color:black;font-family:'Courier New'"&gt;GO&lt;/span&gt;&lt;span style="font-size:8pt;color:#444444;font-family:'Verdana','sans-serif'"&gt; &lt;/span&gt;
&lt;p style="margin:0in 0in 0pt"&gt;&lt;span style="font-size:8pt;color:blue;font-family:'Courier New'"&gt;EXEC&lt;/span&gt;&lt;span style="font-size:8pt;color:black;font-family:'Courier New'"&gt; master&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;.&lt;/span&gt;&lt;span style="font-size:8pt;color:black;font-family:'Courier New'"&gt;dbo&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;.&lt;/span&gt;&lt;span style="font-size:8pt;color:maroon;font-family:'Courier New'"&gt;sp_serveroption&lt;/span&gt;&lt;span style="font-size:8pt;color:black;font-family:'Courier New'"&gt; @server&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;=&lt;/span&gt;&lt;span style="font-size:8pt;color:red;font-family:'Courier New'"&gt;N'MYCUBESERVER_SalesCubeDatabase'&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;,&lt;/span&gt;&lt;span style="font-size:8pt;color:black;font-family:'Courier New'"&gt; @optname&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;=&lt;/span&gt;&lt;span style="font-size:8pt;color:red;font-family:'Courier New'"&gt;N'query timeout'&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;,&lt;/span&gt;&lt;span style="font-size:8pt;color:black;font-family:'Courier New'"&gt; @optvalue&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;=&lt;/span&gt;&lt;span style="font-size:8pt;color:red;font-family:'Courier New'"&gt;N'0'&lt;/span&gt;&lt;span style="font-size:8pt;color:#444444;font-family:'Verdana','sans-serif'"&gt; &lt;/span&gt;
&lt;p style="margin:0in 0in 0pt"&gt;&lt;span style="font-size:8pt;color:black;font-family:'Courier New'"&gt;GO&lt;/span&gt;&lt;span style="font-size:8pt;color:#444444;font-family:'Verdana','sans-serif'"&gt; &lt;/span&gt;
&lt;p style="margin:0in 0in 10pt"&gt;&lt;span style="font-size:8pt;color:blue;font-family:'Courier New'"&gt;EXEC&lt;/span&gt;&lt;span style="font-size:8pt;color:black;font-family:'Courier New'"&gt; master&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;.&lt;/span&gt;&lt;span style="font-size:8pt;color:black;font-family:'Courier New'"&gt;dbo&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;.&lt;/span&gt;&lt;span style="font-size:8pt;color:maroon;font-family:'Courier New'"&gt;sp_serveroption&lt;/span&gt;&lt;span style="font-size:8pt;color:black;font-family:'Courier New'"&gt; @server&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;=&lt;/span&gt;&lt;span style="font-size:8pt;color:red;font-family:'Courier New'"&gt;N'MYCUBESERVER_SalesCubeDatabase'&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;,&lt;/span&gt;&lt;span style="font-size:8pt;color:black;font-family:'Courier New'"&gt; @optname&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;=&lt;/span&gt;&lt;span style="font-size:8pt;color:red;font-family:'Courier New'"&gt;N'use remote collation'&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;,&lt;/span&gt;&lt;span style="font-size:8pt;color:black;font-family:'Courier New'"&gt; @optvalue&lt;/span&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;=&lt;/span&gt;&lt;span style="font-size:8pt;color:red;font-family:'Courier New'"&gt;N'true'&lt;/span&gt;&lt;span style="font-size:8pt;color:#444444;font-family:'Verdana','sans-serif'"&gt;&lt;/span&gt;
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt; &lt;/span&gt;
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt; &lt;/span&gt;
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;4. If your database server is running SQL Server 2000 and you are pointing at a 2005 OLAP database (which was our case), you'll need to install the 9.0 OLAP provider on that box.&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;5. Here's a generic example of what the stored procedure looks like (removed error trapping, nocounts, ect)&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;color:blue;font-family:'Courier New'"&gt;CREATE&lt;/span&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;span style=""&gt;&lt;font color="#000000"&gt;  &lt;/font&gt;&lt;/span&gt;&lt;span style="color:blue"&gt;PROCEDURE&lt;/span&gt;&lt;font color="#000000"&gt; [dbo]&lt;/font&gt;&lt;span style="color:gray"&gt;.&lt;/span&gt;&lt;font color="#000000"&gt;[MsrsWebsiteAdCampaignHitsPerDay]&lt;/font&gt;&lt;/span&gt;
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;font color="#000000"&gt;&lt;span style=""&gt;  &lt;/span&gt;@CustomerID &lt;/font&gt;&lt;span style="color:blue"&gt;INT&lt;/span&gt;&lt;span style="color:gray"&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;font color="#000000"&gt;&lt;span style=""&gt;  &lt;/span&gt;@BeginDate &lt;/font&gt;&lt;span style="color:blue"&gt;DATETIME&lt;/span&gt;&lt;span style="color:gray"&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;font color="#000000"&gt;&lt;span style=""&gt;  &lt;/span&gt;@EndDate &lt;/font&gt;&lt;span style="color:blue"&gt;DATETIME&lt;/span&gt;&lt;/span&gt;
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;color:blue;font-family:'Courier New'"&gt; &lt;/span&gt;
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;color:blue;font-family:'Courier New'"&gt;AS&lt;/span&gt;
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;color:blue;font-family:'Courier New'"&gt; &lt;/span&gt;
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;color:green;font-family:'Courier New'"&gt;--Generate the dynamic SQL &lt;/span&gt;
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;color:blue;font-family:'Courier New'"&gt;DECLARE&lt;/span&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;font color="#000000"&gt; @sqlcode VARCHAR&lt;/font&gt;&lt;span style="color:gray"&gt;(&lt;/span&gt;&lt;font color="#000000"&gt;5000&lt;/font&gt;&lt;span style="color:gray"&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;color:blue;font-family:'Courier New'"&gt;SELECT&lt;/span&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;font color="#000000"&gt; @sqlcode &lt;/font&gt;&lt;span style="color:gray"&gt;=&lt;/span&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;/span&gt;
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;color:red;font-family:'Courier New'"&gt;'&lt;/span&gt;
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;color:red;font-family:'Courier New'"&gt;SELECT &lt;/span&gt;
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;color:red;font-family:'Courier New'"&gt;&lt;span style=""&gt;       &lt;/span&gt;&amp;quot;[Date].[Date].[Day].[MEMBER_CAPTION]&amp;quot; AS ActivityDate&lt;/span&gt;
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;color:red;font-family:'Courier New'"&gt;&lt;span style=""&gt;       &lt;/span&gt;,'&lt;/span&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="color:gray"&gt;+&lt;/span&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="color:gray"&gt;(&lt;/span&gt;&lt;span style="color:fuchsia"&gt;CAST&lt;/span&gt;&lt;span style="color:gray"&gt;(&lt;/span&gt;&lt;font color="#000000"&gt;@CustomerID &lt;/font&gt;&lt;span style="color:blue"&gt;AS&lt;/span&gt;&lt;font color="#000000"&gt; VARCHAR&lt;/font&gt;&lt;span style="color:gray"&gt;(&lt;/span&gt;&lt;font color="#000000"&gt;10&lt;/font&gt;&lt;span style="color:gray"&gt;)))&lt;/span&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="color:gray"&gt;+&lt;/span&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="color:red"&gt;' AS CustomerID&lt;/span&gt;&lt;/span&gt;
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;color:red;font-family:'Courier New'"&gt;&lt;span style=""&gt;       &lt;/span&gt;,&amp;quot;[Sales].[Customer to AdCampaign].[AdCampaign].[MEMBER_CAPTION]&amp;quot; AS AdCampaign&lt;/span&gt;
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;color:red;font-family:'Courier New'"&gt;&lt;span style=""&gt;       &lt;/span&gt;,CAST(convert(float, &amp;quot;[Measures].[Hits]&amp;quot;) AS int) AS Hits&lt;/span&gt;
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;color:red;font-family:'Courier New'"&gt;&lt;span style=""&gt;       &lt;/span&gt;,CAST(convert(float, &amp;quot;[Measures].[Cost]&amp;quot;) AS money) AS Cost&lt;/span&gt;
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;color:red;font-family:'Courier New'"&gt; &lt;/span&gt;
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;color:red;font-family:'Courier New'"&gt;FROM Openquery(MYCUBESERVER_SalesCubeDatabase,&lt;/span&gt;
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;color:red;font-family:'Courier New'"&gt;''&lt;/span&gt;
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;color:red;font-family:'Courier New'"&gt;&lt;span style=""&gt;       &lt;/span&gt;SELECT NON EMPTY { [Measures].[Hits], [Measures].[Costs] } ON COLUMNS ,&lt;/span&gt;
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;color:red;font-family:'Courier New'"&gt;&lt;span style=""&gt;       &lt;/span&gt;NON EMPTY { { { DESCENDANTS( [Sales].[Customer to AdCampaign].[Customer].&amp;amp;['&lt;/span&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="color:gray"&gt;+&lt;/span&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="color:gray"&gt;(&lt;/span&gt;&lt;span style="color:fuchsia"&gt;CAST&lt;/span&gt;&lt;span style="color:gray"&gt;(&lt;/span&gt;&lt;font color="#000000"&gt;@CustomerID &lt;/font&gt;&lt;span style="color:blue"&gt;AS&lt;/span&gt;&lt;font color="#000000"&gt; VARCHAR&lt;/font&gt;&lt;span style="color:gray"&gt;(&lt;/span&gt;&lt;font color="#000000"&gt;10&lt;/font&gt;&lt;span style="color:gray"&gt;)))&lt;/span&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="color:gray"&gt;+&lt;/span&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="color:red"&gt;'], [Sales].[Customer to AdCampaign].[AdCampaign] ) }&lt;span style=""&gt;  &lt;/span&gt;* { [Date].[Date].[Day].['&lt;/span&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="color:gray"&gt;+&lt;/span&gt;&lt;font color="#000000"&gt; @BeginDate &lt;/font&gt;&lt;span style="color:gray"&gt;+&lt;/span&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="color:red"&gt;']:[Date].[Date].[Day].['&lt;/span&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="color:gray"&gt;+&lt;/span&gt;&lt;font color="#000000"&gt; @EndDate &lt;/font&gt;&lt;span style="color:gray"&gt;+&lt;/span&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="color:red"&gt;'] } } } ON ROWS&lt;span style=""&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;color:red;font-family:'Courier New'"&gt;&lt;span style=""&gt;       &lt;/span&gt;FROM [Sales]&lt;/span&gt;
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;color:red;font-family:'Courier New'"&gt;'')&lt;/span&gt;
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;color:red;font-family:'Courier New'"&gt;'&lt;/span&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;font color="#000000"&gt;&lt;span style=""&gt;  &lt;/span&gt;&lt;/font&gt;&lt;/span&gt;
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;/span&gt;
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;color:green;font-family:'Courier New'"&gt;--Create the temp table to insert the data produced by the MDX&lt;/span&gt;
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;color:blue;font-family:'Courier New'"&gt;CREATE&lt;/span&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="color:blue"&gt;TABLE&lt;/span&gt;&lt;font color="#000000"&gt; #AdCampaignHitsPerDay&lt;/font&gt;&lt;/span&gt;
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;(&lt;/span&gt;
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;font color="#000000"&gt;&lt;span style=""&gt;       &lt;/span&gt;ActivityDate &lt;/font&gt;&lt;span style="color:blue"&gt;NTEXT&lt;/span&gt;&lt;span style="color:gray"&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;font color="#000000"&gt;&lt;span style=""&gt;       &lt;/span&gt;CustomerID &lt;/font&gt;&lt;span style="color:blue"&gt;INT&lt;/span&gt;&lt;span style="color:gray"&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;font color="#000000"&gt;&lt;span style=""&gt;       &lt;/span&gt;AdCampaign &lt;/font&gt;&lt;span style="color:blue"&gt;NTEXT&lt;/span&gt;&lt;span style="color:gray"&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;font color="#000000"&gt;&lt;span style=""&gt;       &lt;/span&gt;Hits &lt;/font&gt;&lt;span style="color:blue"&gt;BIGINT&lt;/span&gt;&lt;span style="color:gray"&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;font color="#000000"&gt;&lt;span style=""&gt;       &lt;/span&gt;Cost &lt;/font&gt;&lt;span style="color:blue"&gt;MONEY&lt;/span&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="color:gray"&gt;NULL&lt;/span&gt;&lt;/span&gt;
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt;)&lt;/span&gt;
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt; &lt;/span&gt;
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;color:green;font-family:'Courier New'"&gt;--Insert the data&lt;/span&gt;
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;color:blue;font-family:'Courier New'"&gt;INSERT&lt;/span&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;font color="#000000"&gt; #AdCampaignHitsPerDay&lt;span style=""&gt;  &lt;/span&gt;&lt;/font&gt;&lt;span style="color:blue"&gt;EXEC&lt;/span&gt;&lt;span style="color:gray"&gt;(&lt;/span&gt;&lt;font color="#000000"&gt;@sqlcode&lt;/font&gt;&lt;span style="color:gray"&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;color:gray;font-family:'Courier New'"&gt; &lt;/span&gt;
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;color:green;font-family:'Courier New'"&gt;&lt;/span&gt;&lt;span style="font-size:8pt;color:blue;font-family:'Courier New'"&gt;&lt;span style="font-size:8pt;color:green;font-family:'Courier New'"&gt;--Select for the MSRS report&lt;/span&gt;
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;color:blue;font-family:'Courier New'"&gt;SELECT&lt;/span&gt;
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;span style=""&gt;&lt;font color="#000000"&gt;       &lt;/font&gt;&lt;/span&gt;&lt;span style="color:fuchsia"&gt;CAST&lt;/span&gt;&lt;span style="color:gray"&gt;(&lt;/span&gt;&lt;span style="color:fuchsia"&gt;CAST&lt;/span&gt;&lt;span style="color:gray"&gt;(&lt;/span&gt;&lt;font color="#000000"&gt;ActivityDate &lt;/font&gt;&lt;span style="color:blue"&gt;AS&lt;/span&gt;&lt;font color="#000000"&gt; VARCHAR&lt;/font&gt;&lt;span style="color:gray"&gt;(&lt;/span&gt;&lt;font color="#000000"&gt;100&lt;/font&gt;&lt;span style="color:gray"&gt;))&lt;/span&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="color:blue"&gt;AS&lt;/span&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="color:blue"&gt;SMALLDATETIME&lt;/span&gt;&lt;span style="color:gray"&gt;)&lt;/span&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="color:blue"&gt;AS&lt;/span&gt;&lt;font color="#000000"&gt; ActivityDate&lt;/font&gt;&lt;span style="color:gray"&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;span style=""&gt;&lt;font color="#000000"&gt;    &lt;/font&gt;&lt;/span&gt;&lt;span style="color:fuchsia"&gt;CAST&lt;/span&gt;&lt;span style="color:gray"&gt;((&lt;/span&gt;&lt;span style="color:fuchsia"&gt;CAST&lt;/span&gt;&lt;span style="color:gray"&gt;((&lt;/span&gt;&lt;span style="color:fuchsia"&gt;MONTH&lt;/span&gt;&lt;span style="color:gray"&gt;((&lt;/span&gt;&lt;span style="color:fuchsia"&gt;CAST&lt;/span&gt;&lt;span style="color:gray"&gt;((&lt;/span&gt;&lt;span style="color:fuchsia"&gt;CAST&lt;/span&gt;&lt;span style="color:gray"&gt;(&lt;/span&gt;&lt;font color="#000000"&gt;ActivityDate &lt;/font&gt;&lt;span style="color:blue"&gt;AS&lt;/span&gt;&lt;font color="#000000"&gt; VARCHAR&lt;/font&gt;&lt;span style="color:gray"&gt;(&lt;/span&gt;&lt;font color="#000000"&gt;100&lt;/font&gt;&lt;span style="color:gray"&gt;)))&lt;/span&gt;&lt;span style="color:blue"&gt;AS&lt;/span&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="color:blue"&gt;DATETIME&lt;/span&gt;&lt;span style="color:gray"&gt;))))&lt;/span&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="color:blue"&gt;AS&lt;/span&gt;&lt;font color="#000000"&gt; VARCHAR&lt;/font&gt;&lt;span style="color:gray"&gt;(&lt;/span&gt;&lt;font color="#000000"&gt;100&lt;/font&gt;&lt;span style="color:gray"&gt;))&lt;/span&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="color:gray"&gt;+&lt;/span&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="color:red"&gt;'/'&lt;/span&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="color:gray"&gt;+&lt;/span&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="color:fuchsia"&gt;CAST&lt;/span&gt;&lt;span style="color:gray"&gt;((&lt;/span&gt;&lt;span style="color:fuchsia"&gt;day&lt;/span&gt;&lt;span style="color:gray"&gt;((&lt;/span&gt;&lt;span style="color:fuchsia"&gt;CAST&lt;/span&gt;&lt;span style="color:gray"&gt;((&lt;/span&gt;&lt;span style="color:fuchsia"&gt;CAST&lt;/span&gt;&lt;span style="color:gray"&gt;(&lt;/span&gt;&lt;font color="#000000"&gt;ActivityDate &lt;/font&gt;&lt;span style="color:blue"&gt;AS&lt;/span&gt;&lt;font color="#000000"&gt; VARCHAR&lt;/font&gt;&lt;span style="color:gray"&gt;(&lt;/span&gt;&lt;font color="#000000"&gt;100&lt;/font&gt;&lt;span style="color:gray"&gt;)))&lt;/span&gt;&lt;span style="color:blue"&gt;AS&lt;/span&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="color:blue"&gt;DATETIME&lt;/span&gt;&lt;span style="color:gray"&gt;))))&lt;/span&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="color:blue"&gt;AS&lt;/span&gt;&lt;font color="#000000"&gt; VARCHAR&lt;/font&gt;&lt;span style="color:gray"&gt;(&lt;/span&gt;&lt;font color="#000000"&gt;100&lt;/font&gt;&lt;span style="color:gray"&gt;)))&lt;/span&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="color:blue"&gt;AS&lt;/span&gt;&lt;font color="#000000"&gt; VARCHAR&lt;/font&gt;&lt;span style="color:gray"&gt;(&lt;/span&gt;&lt;font color="#000000"&gt;61&lt;/font&gt;&lt;span style="color:gray"&gt;))&lt;/span&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="color:blue"&gt;AS&lt;/span&gt;&lt;font color="#000000"&gt; [Date]&lt;/font&gt;&lt;span style="color:gray"&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;span style=""&gt;&lt;font color="#000000"&gt;       &lt;/font&gt;&lt;/span&gt;&lt;span style="color:fuchsia"&gt;YEAR&lt;/span&gt;&lt;span style="color:gray"&gt;((&lt;/span&gt;&lt;span style="color:fuchsia"&gt;CAST&lt;/span&gt;&lt;span style="color:gray"&gt;((&lt;/span&gt;&lt;span style="color:fuchsia"&gt;CAST&lt;/span&gt;&lt;span style="color:gray"&gt;(&lt;/span&gt;&lt;font color="#000000"&gt;ActivityDate &lt;/font&gt;&lt;span style="color:blue"&gt;AS&lt;/span&gt;&lt;font color="#000000"&gt; VARCHAR&lt;/font&gt;&lt;span style="color:gray"&gt;(&lt;/span&gt;&lt;font color="#000000"&gt;100&lt;/font&gt;&lt;span style="color:gray"&gt;)))&lt;/span&gt;&lt;span style="color:blue"&gt;AS&lt;/span&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="color:blue"&gt;DATETIME&lt;/span&gt;&lt;span style="color:gray"&gt;)))&lt;/span&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="color:blue"&gt;AS&lt;/span&gt;&lt;font color="#000000"&gt; [YEAR]&lt;/font&gt;&lt;span style="color:gray"&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;span style=""&gt;&lt;font color="#000000"&gt;       &lt;/font&gt;&lt;/span&gt;&lt;span style="color:fuchsia"&gt;MONTH&lt;/span&gt;&lt;span style="color:gray"&gt;((&lt;/span&gt;&lt;span style="color:fuchsia"&gt;CAST&lt;/span&gt;&lt;span style="color:gray"&gt;((&lt;/span&gt;&lt;span style="color:fuchsia"&gt;CAST&lt;/span&gt;&lt;span style="color:gray"&gt;(&lt;/span&gt;&lt;font color="#000000"&gt;ActivityDate &lt;/font&gt;&lt;span style="color:blue"&gt;AS&lt;/span&gt;&lt;font color="#000000"&gt; VARCHAR&lt;/font&gt;&lt;span style="color:gray"&gt;(&lt;/span&gt;&lt;font color="#000000"&gt;100&lt;/font&gt;&lt;span style="color:gray"&gt;)))&lt;/span&gt;&lt;span style="color:blue"&gt;AS&lt;/span&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="color:blue"&gt;DATETIME&lt;/span&gt;&lt;span style="color:gray"&gt;)))&lt;/span&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="color:blue"&gt;AS&lt;/span&gt;&lt;font color="#000000"&gt; [MONTH]&lt;/font&gt;&lt;span style="color:gray"&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;span style=""&gt;&lt;font color="#000000"&gt;       &lt;/font&gt;&lt;/span&gt;&lt;span style="color:fuchsia"&gt;CAST&lt;/span&gt;&lt;span style="color:gray"&gt;(&lt;/span&gt;&lt;font color="#000000"&gt;AdCampaign &lt;/font&gt;&lt;span style="color:blue"&gt;AS&lt;/span&gt;&lt;font color="#000000"&gt; VARCHAR&lt;/font&gt;&lt;span style="color:gray"&gt;(&lt;/span&gt;&lt;font color="#000000"&gt;50&lt;/font&gt;&lt;span style="color:gray"&gt;))&lt;/span&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="color:blue"&gt;AS&lt;/span&gt;&lt;font color="#000000"&gt; AdCampaign&lt;/font&gt;&lt;span style="color:gray"&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;span style=""&gt;&lt;font color="#000000"&gt;       &lt;/font&gt;&lt;/span&gt;&lt;span style="color:fuchsia"&gt;SUM&lt;/span&gt;&lt;span style="color:gray"&gt;(&lt;/span&gt;&lt;font color="#000000"&gt;Hits&lt;/font&gt;&lt;span style="color:gray"&gt;)&lt;/span&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="color:blue"&gt;AS&lt;/span&gt;&lt;font color="#000000"&gt; Visitors&lt;/font&gt;&lt;span style="color:gray"&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;span style=""&gt;&lt;font color="#000000"&gt;       &lt;/font&gt;&lt;/span&gt;&lt;span style="color:fuchsia"&gt;SUM&lt;/span&gt;&lt;span style="color:gray"&gt;(&lt;/span&gt;&lt;font color="#000000"&gt;Cost&lt;/font&gt;&lt;span style="color:gray"&gt;)&lt;/span&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="color:blue"&gt;AS&lt;/span&gt;&lt;font color="#000000"&gt; Cost&lt;/font&gt;&lt;/span&gt;
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;color:blue;font-family:'Courier New'"&gt;FROM&lt;/span&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;/span&gt;
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;font color="#000000"&gt;&lt;span style=""&gt;       &lt;/span&gt;#AdCampaignHitsPerDay&lt;span style=""&gt;   &lt;/span&gt;&lt;/font&gt;&lt;/span&gt;
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;color:blue;font-family:'Courier New'"&gt;WHERE&lt;/span&gt;
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;font color="#000000"&gt;&lt;span style=""&gt;       &lt;/span&gt;Hits &lt;/font&gt;&lt;span style="color:gray"&gt;&amp;gt;&lt;/span&gt;&lt;font color="#000000"&gt; 0&lt;span style=""&gt;      &lt;/span&gt;&lt;/font&gt;&lt;/span&gt;
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;color:blue;font-family:'Courier New'"&gt;GROUP&lt;/span&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="color:blue"&gt;BY&lt;/span&gt;&lt;/span&gt;
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;span style=""&gt;&lt;font color="#000000"&gt;       &lt;/font&gt;&lt;/span&gt;&lt;span style="color:fuchsia"&gt;CAST&lt;/span&gt;&lt;span style="color:gray"&gt;(&lt;/span&gt;&lt;font color="#000000"&gt;AdCampaign &lt;/font&gt;&lt;span style="color:blue"&gt;AS&lt;/span&gt;&lt;font color="#000000"&gt; VARCHAR&lt;/font&gt;&lt;span style="color:gray"&gt;(&lt;/span&gt;&lt;font color="#000000"&gt;50&lt;/font&gt;&lt;span style="color:gray"&gt;)),&lt;/span&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;/span&gt;
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;span style=""&gt;&lt;font color="#000000"&gt;       &lt;/font&gt;&lt;/span&gt;&lt;span style="color:fuchsia"&gt;YEAR&lt;/span&gt;&lt;span style="color:gray"&gt;((&lt;/span&gt;&lt;span style="color:fuchsia"&gt;CAST&lt;/span&gt;&lt;span style="color:gray"&gt;((&lt;/span&gt;&lt;span style="color:fuchsia"&gt;CAST&lt;/span&gt;&lt;span style="color:gray"&gt;(&lt;/span&gt;&lt;font color="#000000"&gt;ActivityDate &lt;/font&gt;&lt;span style="color:blue"&gt;AS&lt;/span&gt;&lt;font color="#000000"&gt; VARCHAR&lt;/font&gt;&lt;span style="color:gray"&gt;(&lt;/span&gt;&lt;font color="#000000"&gt;100&lt;/font&gt;&lt;span style="color:gray"&gt;)))&lt;/span&gt;&lt;span style="color:blue"&gt;AS&lt;/span&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="color:blue"&gt;DATETIME&lt;/span&gt;&lt;span style="color:gray"&gt;))),&lt;/span&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;/span&gt;
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;span style=""&gt;&lt;font color="#000000"&gt;       &lt;/font&gt;&lt;/span&gt;&lt;span style="color:fuchsia"&gt;MONTH&lt;/span&gt;&lt;span style="color:gray"&gt;((&lt;/span&gt;&lt;span style="color:fuchsia"&gt;CAST&lt;/span&gt;&lt;span style="color:gray"&gt;((&lt;/span&gt;&lt;span style="color:fuchsia"&gt;CAST&lt;/span&gt;&lt;span style="color:gray"&gt;(&lt;/span&gt;&lt;font color="#000000"&gt;ActivityDate &lt;/font&gt;&lt;span style="color:blue"&gt;AS&lt;/span&gt;&lt;font color="#000000"&gt; VARCHAR&lt;/font&gt;&lt;span style="color:gray"&gt;(&lt;/span&gt;&lt;font color="#000000"&gt;100&lt;/font&gt;&lt;span style="color:gray"&gt;)))&lt;/span&gt;&lt;span style="color:blue"&gt;AS&lt;/span&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="color:blue"&gt;DATETIME&lt;/span&gt;&lt;span style="color:gray"&gt;))),&lt;/span&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;/span&gt;
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;span style=""&gt;&lt;font color="#000000"&gt;       &lt;/font&gt;&lt;/span&gt;&lt;span style="color:gray"&gt;(&lt;/span&gt;&lt;span style="color:fuchsia"&gt;CAST&lt;/span&gt;&lt;span style="color:gray"&gt;(&lt;/span&gt;&lt;span style="color:fuchsia"&gt;CAST&lt;/span&gt;&lt;span style="color:gray"&gt;(.&lt;/span&gt;&lt;font color="#000000"&gt;ActivityDate &lt;/font&gt;&lt;span style="color:blue"&gt;AS&lt;/span&gt;&lt;font color="#000000"&gt; VARCHAR&lt;/font&gt;&lt;span style="color:gray"&gt;(&lt;/span&gt;&lt;font color="#000000"&gt;100&lt;/font&gt;&lt;span style="color:gray"&gt;))&lt;/span&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="color:blue"&gt;AS&lt;/span&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="color:blue"&gt;SMALLDATETIME&lt;/span&gt;&lt;span style="color:gray"&gt;)),&lt;/span&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;/span&gt;
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;span style=""&gt;&lt;font color="#000000"&gt;       &lt;/font&gt;&lt;/span&gt;&lt;span style="color:gray"&gt;(&lt;/span&gt;&lt;span style="color:fuchsia"&gt;CAST&lt;/span&gt;&lt;span style="color:gray"&gt;((&lt;/span&gt;&lt;span style="color:fuchsia"&gt;CAST&lt;/span&gt;&lt;span style="color:gray"&gt;((&lt;/span&gt;&lt;span style="color:fuchsia"&gt;MONTH&lt;/span&gt;&lt;span style="color:gray"&gt;((&lt;/span&gt;&lt;span style="color:fuchsia"&gt;CAST&lt;/span&gt;&lt;span style="color:gray"&gt;((&lt;/span&gt;&lt;span style="color:fuchsia"&gt;CAST&lt;/span&gt;&lt;span style="color:gray"&gt;(.&lt;/span&gt;&lt;font color="#000000"&gt;ActivityDate &lt;/font&gt;&lt;span style="color:blue"&gt;AS&lt;/span&gt;&lt;font color="#000000"&gt; VARCHAR&lt;/font&gt;&lt;span style="color:gray"&gt;(&lt;/span&gt;&lt;font color="#000000"&gt;100&lt;/font&gt;&lt;span style="color:gray"&gt;)))&lt;/span&gt;&lt;span style="color:blue"&gt;AS&lt;/span&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="color:blue"&gt;DATETIME&lt;/span&gt;&lt;span style="color:gray"&gt;))))&lt;/span&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="color:blue"&gt;AS&lt;/span&gt;&lt;font color="#000000"&gt; VARCHAR&lt;/font&gt;&lt;span style="color:gray"&gt;(&lt;/span&gt;&lt;font color="#000000"&gt;100&lt;/font&gt;&lt;span style="color:gray"&gt;))&lt;/span&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="color:gray"&gt;+&lt;/span&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="color:red"&gt;'/'&lt;/span&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="color:gray"&gt;+&lt;/span&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="color:fuchsia"&gt;CAST&lt;/span&gt;&lt;span style="color:gray"&gt;((&lt;/span&gt;&lt;span style="color:fuchsia"&gt;day&lt;/span&gt;&lt;span style="color:gray"&gt;((&lt;/span&gt;&lt;span style="color:fuchsia"&gt;CAST&lt;/span&gt;&lt;span style="color:gray"&gt;((&lt;/span&gt;&lt;span style="color:fuchsia"&gt;CAST&lt;/span&gt;&lt;span style="color:gray"&gt;(&lt;/span&gt;&lt;font color="#000000"&gt;ActivityDate &lt;/font&gt;&lt;span style="color:blue"&gt;AS&lt;/span&gt;&lt;font color="#000000"&gt; VARCHAR&lt;/font&gt;&lt;span style="color:gray"&gt;(&lt;/span&gt;&lt;font color="#000000"&gt;100&lt;/font&gt;&lt;span style="color:gray"&gt;)))&lt;/span&gt;&lt;span style="color:blue"&gt;AS&lt;/span&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="color:blue"&gt;DATETIME&lt;/span&gt;&lt;span style="color:gray"&gt;))))&lt;/span&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="color:blue"&gt;AS&lt;/span&gt;&lt;font color="#000000"&gt; VARCHAR&lt;/font&gt;&lt;span style="color:gray"&gt;(&lt;/span&gt;&lt;font color="#000000"&gt;100&lt;/font&gt;&lt;span style="color:gray"&gt;)))&lt;/span&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="color:blue"&gt;AS&lt;/span&gt;&lt;font color="#000000"&gt; VARCHAR&lt;/font&gt;&lt;span style="color:gray"&gt;(&lt;/span&gt;&lt;font color="#000000"&gt;61&lt;/font&gt;&lt;span style="color:gray"&gt;)))&lt;/span&gt;&lt;/span&gt;
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;color:blue;font-family:'Courier New'"&gt;ORDER&lt;/span&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="color:blue"&gt;BY&lt;/span&gt;&lt;/span&gt;
&lt;p style="margin:0in 0in 10pt"&gt;&lt;span style="font-size:8pt;line-height:115%;font-family:'Courier New'"&gt;&lt;font color="#000000"&gt;&lt;span style=""&gt;       &lt;/span&gt;AdCampaign&lt;/font&gt;&lt;span style="color:gray"&gt;,&lt;/span&gt;&lt;font color="#000000"&gt; ActivityDate&lt;/font&gt;&lt;/span&gt;&lt;span style="font-size:8pt;line-height:115%"&gt;&lt;/span&gt;
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;/span&gt;
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;color:blue;font-family:'Courier New'"&gt;ORDER&lt;/span&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="color:blue"&gt;BY&lt;/span&gt;&lt;/span&gt;
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;font color="#000000"&gt;&lt;span style=""&gt;       &lt;/span&gt;AdCampaign&lt;/font&gt;&lt;span style="color:gray"&gt;,&lt;/span&gt;&lt;font color="#000000"&gt; ActivityDate&lt;/font&gt;&lt;/span&gt;
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;/span&gt;
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;/span&gt;
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;color:blue;font-family:'Courier New'"&gt;DROP&lt;/span&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;span style="color:blue"&gt;TABLE&lt;/span&gt;&lt;font color="#000000"&gt; #AdCampaignHitsPerDay&lt;/font&gt;&lt;/span&gt;
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;/span&gt;
&lt;p style="margin:0in 0in 0pt;line-height:normal"&gt;&lt;span style="font-size:8pt;font-family:'Courier New'"&gt;&lt;font color="#000000"&gt;exit_procedure&lt;/font&gt;&lt;span style="color:gray"&gt;:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;6. That's really about it. 90% of the time was spent just trying to get the double hop authentication working.&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt; &lt;/div&gt;&lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=-2079821278116685873&amp;page=RSS%3a+Calling+MDX+from+a+SQL+Server+Stored+Procedure&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=jesseorosz.spaces.live.com&amp;amp;GT1=jesseorosz"&gt;</description><comments>http://jesseorosz.spaces.live.com/Blog/cns!E322FD91218E57CF!350.entry#comment</comments><guid isPermaLink="true">http://jesseorosz.spaces.live.com/Blog/cns!E322FD91218E57CF!350.entry</guid><pubDate>Tue, 12 Feb 2008 22:25:08 GMT</pubDate><slash:comments>1</slash:comments><msn:type>blogentry</msn:type><live:type>blogentry</live:type><live:typelabel>Blog entry</live:typelabel><wfw:commentRss>http://jesseorosz.spaces.live.com/blog/cns!E322FD91218E57CF!350/comments/feed.rss</wfw:commentRss><wfw:comment>http://jesseorosz.spaces.live.com/Blog/cns!E322FD91218E57CF!350.entry#comment</wfw:comment><dcterms:modified>2008-02-12T22:25:08Z</dcterms:modified></item><item><title>Blogging Ideas</title><link>http://jesseorosz.spaces.live.com/Blog/cns!E322FD91218E57CF!348.entry</link><description>&lt;div&gt;I'm looking for something to blog about, any ideas?&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;jesperzz at hotmail dawt com&lt;/div&gt;&lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=-2079821278116685873&amp;page=RSS%3a+Blogging+Ideas&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=jesseorosz.spaces.live.com&amp;amp;GT1=jesseorosz"&gt;</description><comments>http://jesseorosz.spaces.live.com/Blog/cns!E322FD91218E57CF!348.entry#comment</comments><guid isPermaLink="true">http://jesseorosz.spaces.live.com/Blog/cns!E322FD91218E57CF!348.entry</guid><pubDate>Wed, 30 Jan 2008 21:10:16 GMT</pubDate><slash:comments>0</slash:comments><msn:type>blogentry</msn:type><live:type>blogentry</live:type><live:typelabel>Blog entry</live:typelabel><wfw:commentRss>http://jesseorosz.spaces.live.com/blog/cns!E322FD91218E57CF!348/comments/feed.rss</wfw:commentRss><wfw:comment>http://jesseorosz.spaces.live.com/Blog/cns!E322FD91218E57CF!348.entry#comment</wfw:comment><dcterms:modified>2008-01