Defining a Data Source View

After you define the data sources that you will use in an Analysis Services project, the next step is generally to define a data source view for the project. A data source view is a single, unified view of the metadata from the specified tables and views that the data source defines in the project. Storing the metadata in the data source view enables you to work with the metadata during development without an open connection to any underlying data source. For more information, see Designing Data Source Views (Analysis Services).

In the following task, you define a data source view that includes five tables from the Adventure Works DW data source.  

To define a new data source view

  1. In Solution Explorer, right-click Data Source Views, and then click New Data Source View.

  2. On the Welcome to the Data Source View Wizard page, click Next.

  3. The Select a Data Source page appears. Under Relational data sources, the Adventure Works DW data source is selected. Click Next.

    Note

    To create a data source view that is based on multiple data sources, you first define a data source view that is based on a single data source. This data source is then called the primary data source. You can then add tables and views from a secondary data source. When designing dimensions that contain attributes based on related tables in multiple data sources, you might have to define a Microsoft SQL Server data source as the primary data source to use its distributed query engine capabilities.

  4. On the Select Tables and Views page, you select tables and views from the list of objects that are available from the selected data source. You can filter this list to help you in selecting tables and views.

    Note

    Click the maximize button in the upper-right corner so that the window covers the full screen. This will make it easier to see the complete list of available objects.

    In the Available objects list, select the following objects. You can select multiple tables by clicking each while holding down the CTRL key:

    • DimCustomer (dbo)

    • DimDate (dbo)

    • DimGeography (dbo)

    • DimProduct (dbo)

    • FactInternetSales (dbo)

  5. Click > to add the selected tables to the Included objects list.

  6. Click Next.

  7. In the Name field, type Adventure Works DW and then click Finish to define the Adventure Works DW data source view.

    The Adventure Works DW data source view appears in the Data Source Views folder in Solution Explorer. The content of the data source view is also displayed in Data Source View Designer in Business Intelligence Development Studio. This designer contains the following elements:

    • A Diagram pane in which the tables and their relationships are represented graphically.

    • A Tables pane in which the tables and their schema elements are displayed in a tree view.

    • A Diagram Organizer pane in which you can create subdiagrams so that you can view subsets of the data source view.

    • A toolbar that is specific to Data Source View Designer.

  8. To maximize the Microsoft Visual Studio development environment, click the Maximize button.

  9. To view the tables in the Diagram pane at 50 percent, click the Zoom icon on the Data Source View Designer toolbar. This will hide the column details of each table.

  10. To hide Solution Explorer, click the Auto Hide button, which is the pushpin icon on the title bar. To view Solution Explorer again, position your pointer over the Solution Explorer tab along the right side of the development environment. To unhide Solution Explorer, click the Auto Hide button again.

  11. If the window is not hidden by default, click Auto Hide on the title bar of the Properties window.

    You can now view all the tables and their relationships in the Diagram pane. Notice that there are three relationships between the FactInternetSales table and the DimDate table. Each sale has three dates associated with the sale: an order date, a due date, and a ship date. To view the details of any relationship, double-click the relationship arrow in the Diagram pane.

Next Task in Lesson

Modifying Default Table Names