We will run the package immediately, as we are only interested in seeing the results using our DRILLTHROUGH query.
34. Ensure that Run Immediately is checked.
35. Click Next.
The DTS Import / Export Wizard - Completing the DTS Import / Export Wizard dialog appears, as shown in Illustration 30 below.
|Click for larger image
Illustration 30: The DTS Import / Export Wizard - Completing the DTS Import / Export Wizard Dialog
The Wizard provides us an opportunity at this point to review all setpoints.
36. Click Finish.
The Executing Package status dialog appears (shown in Illustration 31 below), informing us of the various steps that DTS is undertaking, in progression.
Illustration 31: The DTS Import / Export Wizard - Executing Package Status Dialog
The package runs quickly, and the Successfully Copied 1 Table(s) from the OLAP Server to MSSQL Server message box informs us that the package has completed, as shown next (Illustration 32).
Illustration 32: Message Box Indicating Successful Completion of the DTS Package
37. Click OK to close the message box.
38. Click Done on the Executing Package status dialog.
The dialog closes, and we are returned to the enterprise manager console. DTS has processed our query, and placed the results in a table that it created as a part of the extraction process. All that remains is an examination of the table to view the results.
39. Expand the SQL Server (typically named after the PC) within which we have been working. (Click the "+" sign immediately to its left.)
40. Expand the Databases folder underneath the Server.
The tree listing the databases contains our new database, MDX_DRILL, as shown in Illustration 33.
Illustration 30: MDX_DRILL Appears in the Databases Folder
41. Expand database MDX_DRILL by clicking the "+" sign immediately to its left.
42. Select Tables underneath MDX_DRILL.
The tables appear to the right of the console. Notice that all are system tables (generated for any MSSQL Server database), except a table called Results. It is here that the output of our DRILLTHROUGH query resides.
43. Right-click the Results table.
44. Click Open Table from the context menu.
45. Select Return All Rows from the second menu that appears, as shown below.
Illustration 34: Opening the Result Dataset - Return All Rows
The query result set appears, similar to that partially shown below:
Illustration 35: Result Dataset Displayed
And so, we see a result set, not unlike that which we obtained when we performed drillthrough from inside Analysis Manager.
There are many options available for using the DRILLTHROUGH statement within our MDX query. The Books Online (installed along with MSSQL Server 2000, or available from the CD's, the Microsoft site, and other locations) describe ways to precisely control the size of the result set, and so forth. In addition, while we simply used DTS to explore an example of the use of DRILLTHROUGH within an MDX query, an understanding of DTS, gained from the Books Online and other resources, may pay great dividends when a ready, convenient means of executing queries is useful.
46. Close the results set view.
47. Select Console from the top menu.
48. Click Exit to close the Enterprise Manager console, as shown in Illustration 36.
Illustration 36: Result Dataset Displayed
Next in Our Series ...
In this lesson, Drilling Through to Details, we explored performing drillthrough with multidimensional cubes. First, we discussed scenarios where drillthrough from summary cube data to the underlying details can be valuable to information consumers. Next, we examined some of the strengths and weaknesses of the capability in MSSQL 2000 Analysis Services.
We examined the steps that need to be taken to implement drillthrough, as a part of setting up a sample drillthrough in the Cube Editor, to focus on concepts in an introductory fashion. We then practiced the creation and use of an example MDX query that used the DRILLTHROUGH statement to retrieve rowsets from the source data underneath cube cells. We explored the syntax for the DRILLTHROUGH statement, and discussed options that surrounded this functionality, as a part of our hands-on exercises.
In our next lesson, Reporting Options for Analysis Services Cubes: Microsoft Office, we will begin a set of articles that examine some of the effective options available for report building with Analysis Services OLAP cubes. To begin our examination of this popular topic, we will present an introduction to using Excel PivotTable reports to retrieve and display information from our cubes. First, we will discuss the steps needed to define our data source, and to establish a connection to the cube. Next, we will expose the layout of the PivotTable report, and explore the use of the PivotTable toolbar in browsing and reporting upon cube data. Finally, we discuss the intersection of dimensions in PivotTable report axes as a means of making our reports truly multidimensional.
» See All Articles by Columnist William E. Pearson, III
Discuss this article in the MSSQL Server 2000 Analysis Services and MDX Topics Forum.