Showing posts with label SSAS. Show all posts
Showing posts with label SSAS. Show all posts

Saturday, July 4, 2009

SQL Server 2005 Analysis Services with the Project Server 2007 : Part 4

Managing Cube Building Service

The Microsoft Office Project Server 2007 Cube Building Service uses the technology provided by SQL Analysis Services to create a database containing several online analytical processing (OLAP) cubes that are used for data analysis reporting. After configuration, you need to manage tasks such as cube build & configuration setting, manage view .
  • Analysis Services settings In Project Server
    • Build Settings
      1. Log on to Project Web Access as an administrator.
      2. Click Server Settings. In the Cube section, click Build Settings.
      3. Analysis Services Settings - specify the information for the server on which SQL Server Analysis Services is running,name of the database that is used by Analysis Services(If the database does not exist, it will be automatically created.),Extranet URL for accessing the OLAP cube and Portfolio Analysis views from outside the Intranet and Description
      4. Database Date Range - Specify the date range of data you want included on the cube ·
      5. Cube Update Frequency - Specify how often you want the cube to be updated
      6. click Save / Save and Build.
    • Cube Configuration
      customize the Project Server OLAP cubes by adding custom fields as dimensions or measures to the cubes associated with the selected entity, and by adding calculated measures. The OLAP cube will contain this information the next time you update the cube, and any selected custom field will only appear after its data have been published.
      1. Log on to Project Web Access as an administrator.
      2. Click Server Settings. In the Cube section, click Configuration.
      3. Cube Dimensions section - Specify the custom fields you want to add to the cube as dimensions. The selected custom fields will be added to both Timephased and Non-timephased cubes, when applicable.Note: Only custom fields that use lookup tables will appear in list.
      4. Cube Measures section - Specify the custom fields you want to add to the cube as measures. The selected custom fields will be added to the related Non-Timephased cube.
      5. Calculated Measures section - Specify an MDX expression to define the calculated measure
      6. Save data
  • View OLAP Cube data
    • Create a Data Analysis view
      1. Log on to Project Web Access as an administrator.
      2. Click Server Settings.In the Look and Feel section, click Manage Views.
      3. On the Manage Views page, click New View.
      4. Name and Type section - select Data Analysis type and enter a name and description for the Data Analysis view.
      5. Analysis Services Settings section -
        a. select the Default server option, you will use the instance of SQL Server Analysis Services you specified when you configured your cube build and configuration settings. (If you select the Custom server option, you have the option to select a different instance of SQL Server Analysis Services.)
        b. select the database that hosts the Project Server 2007 cube and select the cube you want to use for this view. There are fourteen cubes to choose from that are automatically generated by the Cube Building Service (CBS). You can also create cubes that store additional data not created by the CBS.
      6. View Options section - choose how you want the data to be displayed
      7. View Definition section - pick default measures and dimensions from the PivotField List and add them to the PivotTable or PivotChart. Choose the data you want to display in the view and drag it to the row, column, or filter field in which you want it to appear.
      8. Security categories section - select the categories that you want to make available to this view.
      9. Click Save to create the view.

    • Example : Timesheet Compliance view
    • To create this view, follow these steps:
      1. Open PWA -> Server Settings -> Manage Views -> Select New View
      2. In the View Type section, select Data Analysis. Type Timesheet Audit Report in the Name box and a description in the Description box.
      3. In Analysis Services Settings section, select your Analysis Services server
      4. In the Analysis Services Database list, select the appropriate database.
      5. In the Cube list, select the MSP_Project_Timesheet cube.
      6. In the View Options section, select PivotTable with PivotChart and Show Toolbar.
      7. Select Timesheet List, Timesheet Period and any enterprise custom field, that you might have defined and configure in cube configuration, from the PivotTable Field List and drag them to the Drop Filter Fields Here area of the PivotTable workspace.
      8. Add the Fiscal Time dimension to the Drop Column Fields Here PivotTable area to organize your view data by years, quarters, months, and days.
      9. Select Project List and Resource List from the PivotTable Field List and drag them to the Drop Row Fields Here PivotTable area
      10. Expand the Totals set of fields in the PivotTable Field List, select Work, Actual Work,and Remaining Work, and then add them to the Drop Totals or Detail Fields Here PivotTable area.
      11. Now all your projects and resources are displayed as part of the view, making the view, especially the chart part, too cluttered. Use any filter field to restrict the data displayed.
      12. You can also control the graph type you want to use with your Data Analysis views.Review the default char.Change to a different chart type by selecting the Chart Type button
      13. Add the appropriate security categories to access the view.
      14. select Save at the bottom of the page.






-------------------------
<<Part 3
-----

SQL Server 2005 Analysis Services with the Project Server 2007 : Part 3

Configure SQL Server 2005 Analysis Services
After installing require component and configuring SSP account , we will see how to configure SQL Server 2005 Analysis Services to enable access to the repository. You can create the repository in either of two ways:
· Create the repository by using a SQL Server 2000 Microsoft Jet database
· Create the repository in a SQL Server 2005 database
we will take the second approach in this article ......
  • Create the Repository database in SQL Server 2005
    1. Connect to Database Engine in SQL Server Management Studio
    2. Create New Database 'Analysis Services Repository'.
    3. In the Object Explorer list, expand the Security folder. Right-click Logins and then click New Login.
    4. In the Select Users or Groups page, Add this group 'SQLServer2005MSOLAPUser$$MSSQLSERVER'.
    5. In the Select a page list, click User Mappings. In the Users mapped to this login list, select Analysis Services Repository.
    6. In the Database role membership for: list for the repository database, select db_owner. Click OK.
    7. In Microsoft SQL Server Management Studio, expand the Databases folder and right-click Analysis Services Repository. Click New Query.
    8. In the Query Editor screen, enter the following text:
      CREATE TABLE [dbo].[OlapObjects] (
      [ID] [varchar] (36) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL ,
      [ParentID] [varchar] (36) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL ,
      [ObjectName] [nvarchar] (150) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL ,
      [ClassType] [int] NOT NULL ,
      [ObjectDefinition] [ntext] COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
      [LastUpdated] [datetime] NULL ,
      [Changed] [bit] NULL ,
      [Version] [int] NULL
      ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
      GO

      CREATE TABLE [dbo].[Server] (
      [ObjectDefinition] [ntext] COLLATE SQL_Latin1_General_CP1_CI_AS NULL
      ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
    9. Execute the script. The script will create the database scheme required for the repository.
  • Configure Analysis Services to use a SQL Server repository database
    1. Connect to Analysis Services in SQL Server Management Studio.
    2. Right click the Analysis Services name, and then choose Properties.
    3. On the Analysis Services Properties page, in the Select a page section select General. Select Show Advanced (All) Properties.
    4. Select DSO\RepositoryConnectionString from the Name list.
      a. Select the corresponding value for the string in the Value column, and then click the box that appears to the right of the value to display the Connection Manager page.
      b. On the Connection Manager page, in the Provider list, select Native OLE DB\SQL Native Client.
      c. In the Server Name list, select the server on which the repository database is located.
      d. In the Logon to the server field, enter the account information to log onto the server.
      e. In the Connect to database section, select a database name.
      f. Click OK.
    5. Select DSO\RemoteRepositoryConnectionString from the Name list.
      a. Repeat all the steps from step 4
    6. On the Analysis Server Properties page, click OK.
  • Grant permissions to the SQL Server Analysis Service account to access the Project Server Reporting database
    1. Connect to database engine in SQL Server Management Studio
    2. In Management Studio, expand the Security folder, right-click Logins, and then click New Login.
    3. On the General page, enter the Windows Authenticated account for the user running the SQL Server Analysis Services service.
    4. In the Select a page list, click User Mapping.
    5. In the Database list, select Project Server_Reporting. Select the corresponding Map check box.
    6. In the Database role membership for: ProjectServer_Reporting section, select db_datareader.
    7. Click OK.
  • Enable the "Access data sources across domains" security setting in Internet Explorer
    1. In Internet Explorer, click Tools, and then click Internet Options.
    2. Click the Security tab, click the zone that you use to connect to the Office Project Server 2007, and then click Custom Level.
    3. Under Access data sources across domains, select Enable.






    --------------------------
    << Part 2    
    Part 4 >>

    ---------

    SQL Server 2005 Analysis Services with the Project Server 2007 : Part 2

    Configure SSP account

    The second step in SQL Server 2005 Analysis Services configuration is to give correct permission to Shared Services Provider (SSP) account on Analysis Service.

    • Determine the SSP account

      1. On the SharePoint Central Administration Web site, in the Quick Launch, click Shared Services Administration.
      2. On the Manage this Farm's Shared Services page, from the drop-down list for the Shared Services Provider you are using, click Edit Properties.
      3. On the Edit Shared Services Provider page, in the SSP Services Credential section, note the account name in the Username field. This is the SSP account.
    • Add the SSP account to the OLAP users local group
      1. Open Computer management : Start->All Programs->Administrative Tools->Computer Management.
      2. Open OLAP user group : Computer Management page->Local Users and Groups->Groups->"SQLServer2005MSOLAPUser$$MSSQLSERVER"
      3. On the SQLServer2005MSOLAPUser$$MSSQLSERVER properties page, click Add.
      4. On the Select Users, Computers, or Groups page, go to the Enter the object names to select section and add the name of the SSP account. Click Check Name to verify that the account exists.
      5. Click OK.

    • Add the SSP account as a server role member in SQL Server 2005 Analysis Services
      1. Connect to the instance of SQL Server 2005 Analysis Services on SQL Server Management Studio.
      2. Right click your SQL Server 2005 Analysis Services instance name, and then click Properties.
      3. Click Security in the Select a page pane.
      4. Click Add. In the Select Users or Groups page, go to the Enter the object names to select field and enter the name of the SSP account that you are adding to the server role. Click Check Name to verify that the account exists.
      5. Click OK.




    ------------------------------------------------------------------------------
    <<Part 1    
    Part 3 >>



    ----

    SQL Server 2005 Analysis Services with the Project Server 2007 : Part 1

    The Microsoft Office Project Server 2007 Cube Building Service is a reporting feature that allows to perform complex analysis on project data. It uses SQL Server Analysis Services to create an online analytical processing (OLAP) database containing several cubes that are used for data analysis reporting. It allows for data cubes to be built from selections within the Reporting database. This article describes Configuration settings for cube building process।

    Installation
    In order for SQL Server 2005 Analysis Services to function correctly with the Office Project Server 2007 Cube Building Service, you must install following Component

    • SQL Server 2005 Service Pack 1 or higher.
    • DSO client components - These components can be downloaded from the Feature Pack for Microsoft SQL Server 2005 (
    http://go.microsoft.com/fwlink/?LinkId=87078&clcid=0x409).
    • Microsoft SQL Server Native Client (sqlncl.msi)
    • Microsoft SQL Server 2005 Management Objects Collection (sqlserver2005_xm.msi)
    • Microsoft SQL Server 2005 Backward Compatibility Components (SQLServer2005_BC.msi)
  • Microsoft SQL Server 2005 Analysis Services 9.0 OLE DB Provider (SQLServer2005_ASOLEDB9.msi) - This component can be downloaded from the Feature Pack for Microsoft SQL Server 2005(http://go.microsoft.com/fwlink/?LinkId=87078&clcid=0x409).
  • Microsoft Office Web Components - Users are prompted to download the ActiveX components to their computer when they first build a Data Analysis view or when they attempt to use such a view. The Microsoft Office Web Components are a collection of ActiveX components that allows Project Web Access users to use PivotTable and Chart components to access OLAP cube data. This component can be downloaded from Office XP Tool: Web Components (http://go.microsoft.com/fwlink/?LinkId=87125&clcid=0x409).


  • ---------------------------------

    Part 2 >>