Database Journal
MS SQL Oracle DB2 Access MySQL PostgreSQL Sybase PHP SQL Etc SQL Scripts & Samples Tips Database Forum Rss Feed

» Database Journal Home
» Database Articles
» Database Tutorials
MS Access
SQL Scripts & Samples
» Database Forum
» Slideshows
Free Newsletters:

News Via RSS Feed

Rss Feed

Database Journal |DBA Support |SQLCourse |SQLCourse2

Featured Database Articles


Posted Oct 10, 2005

Introduction to MSSQL Server Analysis Services: Introducing Data Source Views - Page 5

By William Pearson


Define a Data Source View

Having defined the Data Source within our Analysis Services Project, our next steps surround the creation of the Data Source View, a procedure that is customary at this stage in most Analysis Services Projects. It is important to realize, as we work with a "live" data connection that we have defined, that we could certainly continue our development efforts with the metadata without an open connection. The Data Source View provides a single, unified view of the metadata from the tables and views that concern us within our project.

To define a Data Source View, we will take the following steps:

1.  Right-click Data Source Views folder within the Solution Explorer.

2.  Select New Data Source View from the context menu that appears, as depicted in Illustration 17.

Illustration 17: Initial Step in Creating a New Data Source View

The Data Source View Wizard appears, opening with the Welcome to the Data Source View Wizard page, as shown in Illustration 18.

Illustration 18: The Initial Page of the Data Source View Wizard

3.  Click Next.

We arrive at the Select a Data Source page, where we see our Adventure Works DW Data Source in the Relational data sources list box on the left side of the page, as depicted in Illustration 19.

Illustration 19: Adventure Works DW Appears in the Relational Data Sources

Our newly created Data Source is positioned as the default, and will serve us in meeting the objectives of our practice exercise. It is particularly useful to note, however, that we can define both a primary data source (a single Data Source like Adventure Works DW is an example), and then add tables and views from secondary data sources.

NOTE: Heterogeneous queries are supported as long as one Data Source is a MSSQL Server Data Source.

4.  Click Next.

We next arrive at the Select Tables and Views page, where we see the various tables of the Adventure Works DW data source appear in the Available objects list box on the left of the page.

5.  Click dbo.FactResellerSales in the Available objects list to select it.

6.  Click the button marked > to move dbo.FactResellerSales to the Included objects list on the right half of the page, as shown in Illustration 20.

Illustration 20: Selecting a Table for Inclusion in the Data Source View

7.  Perform Steps 5 and 6 for each of the following tables, to include them in the Data Source View:

  • dbo.DimEmployee
  • dbo.DimProduct
  • dbo.DimProductCategory
  • dbo.DimProductSubcategory
  • dbo.DimReseller
  • dbo.DimTime

NOTE: We can also select the group listed above at once by holding down the [CTRL] key and clicking each sequentially.

The Select Tables and Views page appears, with our selections, as depicted in Illustration 21.

Illustration 21: Our Tables Selection for the Data Source View

8.  Click Next.

The Completing the Wizard page appears, as shown in Illustration 22.

Illustration 22: The Final Page of the Data Source View Wizard

9.  Click Finish to create the new Data Source View, and to dismiss the Data Source View Wizard.

Our new Data Source View, Adventure Works DW, appears in the Data Source Views folder within the Solution Explorer window, as depicted in Illustration 23.

Illustration 23: The New Data Source View in the Solution Explorer

The Data Source View is also presented within the Data Source View Designer in Business Intelligence Development Studio.

MS SQL Archives

Latest Forum Threads
MS SQL Forum
Topic By Replies Updated
SQL 2005: SSIS: Error using SQL Server credentials poverty 3 August 17th, 07:43 AM
Need help changing table contents nkawtg 1 August 17th, 03:02 AM
SQL Server Memory confifuration bhosalenarayan 2 August 14th, 05:33 AM
SQL Server Primary Key and a Unique Key katty.jonh 2 July 25th, 10:36 AM