{"id":7323,"date":"2006-09-27T14:19:00","date_gmt":"2006-09-27T14:19:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/visualstudioalm\/2006\/09\/27\/how-to-move-the-data-warehouse-sql-server-analysis-services-database-to-a-separate-server\/"},"modified":"2019-02-14T17:52:32","modified_gmt":"2019-02-15T01:52:32","slug":"how-to-move-the-data-warehouse-sql-server-analysis-services-database-to-a-separate-server","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/devops\/how-to-move-the-data-warehouse-sql-server-analysis-services-database-to-a-separate-server\/","title":{"rendered":"How to: Move the Data Warehouse SQL Server Analysis Services Database to a Separate Server"},"content":{"rendered":"<p><font size=\"5\"><strong>Introduction<\/strong><\/font><br>This topic describes how you can increase the capacity of your Team Foundation Server data-tier by moving the SQL Server Analysis Services database to a separate server. After you complete this procedure, the data-tier will be composed of two computers: the relational data-tier server, and the analysis services data-tier server.<\/p>\n<p>Before you start this procedure, you must set up the new server with SQL Server 2005 Analysis Services using the same configuration settings that you used on the existing data-tier server. For more information, see the Team Foundation Server Installation Guide available from the Microsoft Web site (<a href=\"http:\/\/go.microsoft.com\/fwlink\/?LinkId=73908\">http:\/\/go.microsoft.com\/fwlink\/?LinkId=73908<\/a>).<\/p>\n<p><strong>Note&nbsp;<\/strong>This topic is pre-release documentation in support of the Visual Studio 2005 SP1 release and is subject to change in future releases.<\/p>\n<p><font size=\"5\"><strong>Procedures<\/strong><\/font><\/p>\n<p><u>To stop the TFSServerScheduler service and verify that the warehouse Web service is not running<br><\/u>1.&nbsp;On the application-tier computer, click Start, click All Programs, click Administrative Tools, and then click Services.<br>2.&nbsp;In the Services window, select the TfsServerScheduler service.<br>3.&nbsp;On the Action menu click Stop.<br>4.&nbsp;Click Start, click All Programs, click Administrative Tools, and then click Internet Information Services (IIS) Manager.<br>5.&nbsp;In the Internet Information Services (IIS) Manager window, expand the application-tier computer, expand the Web Sites node, expand the Team Foundation Server node, expand the Warehouse node, and then select the v1.0 node.<br>6.&nbsp;Right-click the file warehousecontroller.asmx and then click Browse.<br>7.&nbsp;On the ControllerService page, click GetWarehouseStatus.<br>8.&nbsp;On the GetWarehouseStatus page, click Invoke. If the warehouse service is not busy, it returns an XML document that indicates the status is Idle.<\/p>\n<blockquote>\n<p>&lt;WarehouseStatus &hellip;&gt;Idle&lt;\/WarehouseStatus&gt;<\/p>\n<\/blockquote>\n<p><strong>Caution<\/strong>&nbsp;&nbsp; If the warehouse is not idle, wait until GetWarehouseStatus returns Idle before moving on to the next steps.<\/p>\n<p dir=\"ltr\"><u>To grant the new computer access to the warehouse relational database<br><\/u>1.&nbsp;On the application-tier computer, click Start, click All Programs, click Microsoft SQL Server 2005, and then click SQL Server Management Studio.<br>2.&nbsp;In the Connect to Server dialog box, select the Database Engine server type, select the name of the existing data-tier server from the server name list, and then click Connect.<br>3.&nbsp;In Object Explorer, expand the existing data-tier server, and then expand the Security folder.<br>4.&nbsp;Right-click the Logins folder and then select New Login.<br>5.&nbsp;On the General page, enter the domain account for the new analysis services data-tier computer.<\/p>\n<blockquote>\n<p dir=\"ltr\"><strong>Note&nbsp;&nbsp; <\/strong>The form of the domain account for a computer is [domain][computer name]$. For example, the domain account for a computer named MyServer in a domain named MyDomain would be MyDomainMyServer$. <\/p>\n<\/blockquote>\n<p dir=\"ltr\">6.&nbsp;Select the User Mapping page, select the TFSWarehouse database, select the TFSWarehouseDataReader and public roles, and then press OK.<\/p>\n<p><br><u>To update the TFSIntegration database to use the new analysis services data-tier server<br><\/u>1.&nbsp;In the SQL Server Management Studio Object Browser, expand the TFSIntegration database, expand tables, select dbo.tbl_database, and then click New Query.<br>2.&nbsp;In the query window, enter the following query, substituting your new analysis services computer name.<\/p>\n<blockquote>\n<p>INSERT INTO [TfsIntegration].[dbo].[tbl_database]<br>([fk_registry_entry_id], [name], [dbname], [servername], [connection], [excludebackup])<br>SELECT [fk_registry_entry_id]<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ,&#8217;BISANALYSIS DB&#8217;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ,[dbname]<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ,&#8217;New Analysis Server Data-Tier Computer&#8217;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ,[connection]<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ,[excludebackup]<br>&nbsp; FROM [TfsIntegration].[dbo].[tbl_database]<br>&nbsp; WHERE [name]= &#8216;BISDW DB&#8217;<\/p>\n<\/blockquote>\n<p>3.&nbsp;In the Query menu, click Execute.<\/p>\n<p><br><u>To rebuild the analysis services database<br><\/u>1.&nbsp;On the application-tier computer, click Start, click All Programs, click Accessories, and then click Command Prompt.<br>2.&nbsp;At the command prompt, change directories to the Team Foundation Server tools folder.<br>cd %PROGRAMFILES%Microsoft Visual Studio 2005 Team Foundation ServerTools<br>3.&nbsp;At the command prompt, run the command setupwarehouse as shown here to rebuild the analysis services database.<\/p>\n<blockquote>\n<p>setupwarehouse.exe -o -a serviceaccount -ra reportingaccount -c warehouseschema.xml -s primarydatatierserver -d TFSWarehouse -mturl <a href=\"http:\/\/applicationtierserver:8080\/\">http:\/\/applicationtierserver:8080<\/a><\/p>\n<\/blockquote>\n<p><u>To restart the Team Foundation Server data warehouse application pool<br><\/u>1.&nbsp;Click Start, click All Programs, click Administrative Tools, and then click Internet Information Services (IIS) Manager.<br>2.&nbsp;In the Internet Information Services (IIS) Manager window, expand the application-tier computer, expand Application Pools, and then select the TFS AppPool application pool.<br>3.&nbsp;On the Action menu, click Stop, and then click Start.<\/p>\n<p><br><u>To process the Team Foundation Server data warehouse cube<br><\/u>1.&nbsp;On the application-tier computer, click Start, click All Programs, click Administrative Tools, and then click Internet Information Services (IIS) Manager.<br>2.&nbsp;In the Internet Information Services (IIS) Manager window, expand the application-tier computer, expand the Web Sites node, expand the Team Foundation Server node, expand the Warehouse node, and then select the v1.0 node.<br>3.&nbsp;Right-click the file warehousecontroller.asmx and then click Browse.<br>4.&nbsp;On the ControllerService page, click Run.<br>5.&nbsp;On the Run page, click Invoke.<br>Note&nbsp;&nbsp; The Run method returns True.<br>6.&nbsp;Reopen the ControllerService page, and then click GetWarehouseStatus.<br>7.&nbsp;On the GetWarehouseStatus page, click Invoke. If the warehouse service is not busy, it returns an XML document that indicates the status is Idle.<\/p>\n<blockquote>\n<p>&lt;WarehouseStatus &hellip;&gt;Idle&lt;\/WarehouseStatus&gt;<\/p>\n<\/blockquote>\n<p><strong>Caution<\/strong>&nbsp;&nbsp; If the warehouse is not idle, wait until GetWarehouseStatus returns Idle before moving on to the next steps. This may take minutes or hours, depending on the size of the cube.<\/p>\n<p dir=\"ltr\"><br><u>To update the data source to use the new analysis services data-tier server<br><\/u>1.&nbsp;Use your Internet browser to open the SQL Server Reporting Services page on the application-tier server. For example:<\/p>\n<blockquote>\n<p dir=\"ltr\"><a href=\"http:\/\/application-tier\/Reports\">http:\/\/application-tier\/Reports<\/a><\/p>\n<\/blockquote>\n<p>2.&nbsp;On the SQL Server Reporting Services page, select the TfsOlapReportsDS data source.<br>3.&nbsp;Change the Data Source value of the connection string to the new analysis services data-tier server.<br>4.&nbsp;Reenter the password for the stored credentials and then click Apply.<\/p>\n<p><br><u>To start the TFSServerScheduler service<\/u><br>1.&nbsp;On the application-tier computer, click Start, click All Programs, click Administrative Tools, and then click Services.<br>2.&nbsp;In the Services window, select the TfsServerScheduler service.<br>3.&nbsp;On the Action menu, click Start.<\/p>\n<p><font size=\"5\"><strong>Security<\/strong><\/font><br>To perform this procedure, you must be a member of the Administrators group for the Team Foundation databases and a member of the Team Foundation Administrators group. For more information about permissions, see <a href=\"http:\/\/msdn2.microsoft.com\/en-us\/library\/ms252587.aspx\">Team Foundation Server Permissions<\/a>.<\/p>\n<p><font size=\"5\"><strong>See Also<\/strong><\/font><br><a href=\"http:\/\/msdn2.microsoft.com\/en-us\/library\/ms400783.aspx\">SetupWarehouse<\/a><br><a href=\"http:\/\/msdn2.microsoft.com\/en-us\/library\/ms244696.aspx\">Team Foundation Server Data Warehouse<\/a><\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>IntroductionThis topic describes how you can increase the capacity of your Team Foundation Server data-tier by moving the SQL Server Analysis Services database to a separate server. After you complete this procedure, the data-tier will be composed of two computers: the relational data-tier server, and the analysis services data-tier server. Before you start this procedure, [&hellip;]<\/p>\n","protected":false},"author":125,"featured_media":45953,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-7323","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-devops"],"acf":[],"blog_post_summary":"<p>IntroductionThis topic describes how you can increase the capacity of your Team Foundation Server data-tier by moving the SQL Server Analysis Services database to a separate server. After you complete this procedure, the data-tier will be composed of two computers: the relational data-tier server, and the analysis services data-tier server. Before you start this procedure, [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/posts\/7323","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/users\/125"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/comments?post=7323"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/posts\/7323\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/media\/45953"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/media?parent=7323"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/categories?post=7323"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/tags?post=7323"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}