Tài liệu Pro SQL Server 2008 Analysis Services- P10 docx

31 521 0
Tài liệu Pro SQL Server 2008 Analysis Services- P10 docx

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

A P P E N D I X A    431 Setting Up Adventure Works Through most of this book, I work with a demonstration data set called AdventureWorks. It’s a multidimensional data warehouse and Analysis Services project based on a fictional bicycle company, which has both retail and Internet sales. I really enjoy working with this data set. It’s true that it’s a bicycle store, and as I’ve often commented, “just about wholly unrelated to anything anyone does.” However, although it may not be related to the business of various SSAS users, it is something that just about everyone can understand. If you’ve downloaded sample databases from Microsoft before, you’ve gotten them from Microsoft.com. A few years ago, Microsoft moved all the samples to www.codeplex.com, their open source community, so they would be covered by the open source licensing there. The sample databases are located at the following site: www.codeplex.com/MSFTDBProdSamples Click the Downloads link in the top-right corner. Then download SQL2008.AdventureWorks_All_Databases—either x64 or x86, depending on the architecture you’re running. (There’s a .zip file that has the same contents.) Then run the MSI on your SQL Server (Figure A-1).  Note CodePlex uses a Silverlight applet for the download prompt. So if you try to download from a locked-down server, the link won’t do anything. To enable it, add *.codeplex.com to your trusted sites. Alternatively, download the file from a desktop PC and copy it to the server. Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark. APPENDIX A  SETTING UP ADVENTURE WORKS 432 Figure A-1. Installing the samples The wizard prompts you for the location to install the files (Figure A-2). The default installation location is C:\Program Files\Microsoft SQL Server\100\. The Program Menu Shortcuts option will add shortcuts to the Start menu. The Create AdventureWorks DBs option will generate the databases in the server you select in the next step.  Note You must have Full Text Search and FileStream installed on the server to create the databases, or the wizard will error out. Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark. APPENDIX A  SETTING UP ADVENTURE WORKS 433 Figure A-2. Selecting options and the location to install the sample files The final step is to select the SQL Server instance to install the databases into (Figure A-3). Figure A-3. Selecting the database instance Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark. APPENDIX A  SETTING UP ADVENTURE WORKS 434 If you don’t use the wizard, you can always install the databases yourself with the script files installed. To do this, open the Tools\Samples\AdventureWorks 2008 Data Warehouse folder from where you installed it. (If you installed the shortcuts with the MSI, there will be a shortcut to the folder in the Start Menu.)  Note If you use the wizard to install the databases, do not run the scripts afterward. The first thing the script will do is drop the existing database, and if you haven’t set up the script properly, it will error out immediately afterward. It’s a very confusing state to be left in, because it will look like the script created all the databases but one, when in fact the databases were already created and the script dropped that one. Open the instawdwdb.sql file. If you have the SQL client tools installed, double-clicking the file should open SQL Server Management Studio. If you don’t have the SQL client tools installed, you can copy the scripts to a PC where the client tools are available, or you can use the SQLCMD command-line parameter to run the scripts. If you installed the files into the default location, you should be able to run this query file, and it will create the database and populate it. After the database is created, verify that it’s in place on the server. To build the cubes necessary for reviewing some of the examples in the book, you’ll need to open the OLAP projects and build the cubes (these were not automatically created by the wizard). Open Tools\Samples\AdventureWorks Analysis Services Project. You’ll see two folders, enterprise and standard. Choose the folder that matches the edition of SQL Server Analysis Services you have installed. In that folder, you’ll find an Adventure Works.sln file; double-click that to open the solution in BIDS. After you have the solution open in BIDS, you’ll need to make two changes. First, in the Solution Explorer, double-click the AdventureWorks data source, and enter the server name for where you installed the AdventureWorks DW database. Next, right-click on the solution (the topmost Adventure Works in bold), and select Properties. Click Deployment in the list on the left. Find the Server entry under Target and change that to the server name you want to deploy the cubes to when you process them. Click OK. Deploy the project, process the cubes (see Chapter 8), and you’re all set! Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark. A P P E N D I X B    435 Data-Mining Resources Books Data Mining with SQL Server 2005, by ZhaoHui Tang and Jamie MacLennan (Wiley, 2005) Data Warehousing, Data Mining, & OLAP, by Alex Berson and Larry Dubov (McGraw-Hill, 2007) Delivering Business Intelligence with Microsoft SQL Server 2005, by Brian Larson (McGraw-Hill, 2006) Foundations of SQL Server 2005 Business Intelligence, by Lynn Langit (Apress, 2007) Web Sites SQLServerDataMining.com: www.sqlserverdatamining.com Microsoft SQL Server 2008 Data Mining page: www.microsoft.com/sqlserver/2008/en/us/data-mining.aspx Microsoft SQL Server forums: http://social.msdn.microsoft.com/Forums/en-US/sqldatamining/threads SQL Server Books Online: http://msdn.microsoft.com/en-us/library/ms130214.aspx About.com: “Data Mining: An Introduction”: http://databases.about.com/od/datamining/a/datamining.htm Analysis Services Resource Hub: www.ssas-info.com SQL Server TechCenter: http://technet.microsoft.com/en-us/sqlserver/default.aspx Sample Databases for Microsoft SQL Server 2008: Samples Refresh 4: http://msftdbprodsamples.codeplex.com/releases/view/37109 Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark. Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark. 437 Index  A Access property, data sources, 350 Accessory Buyers marketing campaign, 277 adding Naïve Bayes mining model to, 305 creating Accessory Buyers mining structure, 304–305 creating data source view, 281 creating views in AdventureWorks, 278– 281 Data Mining Extensions, 303–310 Data Mining Model Designer, 289–303 predicting accessory buyers, 308–310 preparing data warehouse, 278–281 processing, DMX, 305–306 viewing mining model, 306–308 AccessoryCampaign DSV creating, 281 creating data-mining model, 283 account attributes, assigning, 254 Account dimension, 137, 138 AdventureWorks project, 138, 139 browsing, 139 unary operators, 256 account intelligence, 254–255 account business intelligence, 139 choosing Standard/Enterprise SSAS, 45 unary operators, 255 Action Designer, 268, 269 action type, 269 actions, 34–35, 251, 265–270 drill-through actions, 265, 266 executing as part of process, SSIS, 345– 348 general actions, 268, 269 invoking via Excel, 266, 267 reporting, 267, 268 Active Directory security, 348 Add Business Intelligence Wizard Dimension menu, 139 additive measure, aggregations, 32 administration PowerShell, 92–95 SQL Server Management Studio, 86–92 AdventureWorks cube BIDS, 60 calculated measures, 189 creating, 190–193 dimension usage table, 181 looking at, 125 MDX and SQL, 219 partition folders, 57–58 processing, 333–335 processing Analysis Services objects from BIDS, 211, 212 using Excel writeback, 315 AdventureWorks project Accessory Buyers campaign, 277 Account dimension, 138, 139 creating Accessory Buyers views in, 278–281 creating cubes, 173–178 creating Date dimension, 161 creating dimension, 127–134 sample databases, 431 setting up, 431–434 specifying dimension storage modes, 142– 148 AdventureWorks schema, 120 AdventureWorks solution creating data-mining model, 282 DSV from, 9, 10 Affected Objects section, Change Settings dialog, 336 aggregate functions, MDX, 241–245 Avg function, 241–242 TopCount function, 242–244 Aggregation Design Wizard creating aggregations, 361 Review Aggregation Usage screen, 362 Set Aggregation Options screen, 363, 364 Specify Object Counts screen, 362, 363 Aggregation Designer, 71, 72, 361 Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark.  INDEX 438 aggregation, OLAP setting Unary Operator on parent attribute, 139 types of, 31–32 AggregationPrefix property, measure groups, 185 aggregations additive measure, 32 Analysis Services, 359–367 attributes, 226 CALCULATE statement, 186 combining numerical data, 183 creating, 360–365 cubes, 27 LazyAggregations setting, 140 measure groups, 185 measures, 183 nonadditive measures, 32, 183 performance management, SSAS, 359–367 preparing for use, 365–367 processing Analysis Services objects, 204 semiadditive measures, 32, 183 algorithms, data mining see data mining algorithms All member, 221 AllowedBrowsingFolders property, 56 AMO (Analysis Management Objects), 340–343 PowerShell with SSAS, 94 processing Analysis Services objects from, 215 AMO Automation deployment method, 198 AMO design warnings, 72, 135–136 Dismiss Warning dialog, 135 mismatching types, 138 viewing status of warnings in database, 136 Warnings tab, 136 ampersand, MDX, 222 Analysis Management Objects see AMO Analysis Services see also SSAS actions, 251 aggregations, 359–367 Analysis Management Objects, 340–343 attribute relationship design, 353 authentication, 348–349 authorization, 348, 349–352 autoexists feature, 351 building attribute relationship in dimension, 151 CALCULATE statement, 186 combining numerical data, 183 connecting to database, 85 creating project, 82–84 cubes, 89–90 AMO design warnings, 135–136 automating cube processing, 339 BIDS, 60 processing, 333–335 data source views, 88–89 data sources, 87–88 connections from OLAP to Excel, 375, 389 data-mining structures, 90 DBA tasks, 333–348 design, 352–359 dimensions, 90, 353 example showing power of, 188 executing actions as part of process, SSIS, 345–348 facts, 183 hardware requirements, 41–42 importing database into new project, 86 interacting with SSAS, 75 key performance indicator, 11 logical architecture, 49–51 managing, 87–90 named calculations, 110 partitions, 359 performance management, 352–371 Performance Monitor, 337–339 PerformancePoint Server, 423 PowerShell, 343 pre-calculation caching, 359 preparing aggregations for use, 365 processing architecture, 336–337 processing objects, 204, 205 from AMO, 215 from BIDS, 208–214 from SSMS, 214 from XMLA, 215 processing options, 335–336 Profiler trace, 337 relating measures and dimensions, 178, 179– 181 roles, 90 scalability, 367–369 security, 348–352 selecting connection to, 347 setting Unary Operator on parent attribute, 139 SQL Server 2005, 8 SQL Server Analysis Services (SSAS), 8 SQL Server Profiler, 337 SQL Server Reporting Services, 401 synchronizing SSAS databases, 202–204 Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark.  INDEX 439 task configuration, 346 unified dimensional model, 46–49 user-friendly interface for, 373 using DMX development environment, 303 using Excel writeback, 319 VertiPaq mode, 311, 320 Windows Integrated Authentication, 348 Analysis Services data table building Excel report, 122 Analysis Services databases deploying projects, 195 Analysis Services objects processing with XMLA queries, 340 scheduling processing of, 343–345 SQL Server Agent, 344–345 Analysis Services Processing Task scheduling OLAP maintenance, 215, 216 Analysis Services Project creating data sources, 102 Analysis Services Server connecting SSMS to, 366 Analyze tab pivot charts, Excel 2007, 388 Ancestor function, MDX, 239 ancestors and descendants, 240 APL, history of OLAP, 7 architecture BI architecture, 47 processing, Analysis Services, 336–337 architecture, SSAS, 46–59 logical architecture, 49–51 physical architecture, 52–54 storage, 54–59 AS keyword, MDX queries, 237 asdatabase file, SSAS, 202 Assembly objects SSAS logical architecture, 51 assets account intelligence, 254, 255 Associated Measure Group, Cube Designer, 191 calculated measures, 261 association predictions algorithm, 277 Attribute Designer, BIDS, 354 attribute ordering, BI, 257 attribute relationship design, Analysis Services, 353 attribute relationship designer, Dimension Editor, 70, 71 attribute relationships, dimensions, 151, 155 snowflake schema, 150, 151 star schema, 150, 151 AttributeHierarchyDisplayFolder property, 156 AttributeHierarchyEnabled property, 156 AttributeHierarchyVisible property, 156 attributes aggregating, 226 aggregation design, 362 attribute relationships, 150–156 creating dimension with, 152–156 creating from data source view, 149 creating tool tip with dimension attribute, 21 design, SSAS, 353–355 dimension types, 138 dimensions, 21 dimensions, SSAS, 148–156 editing full collection of properties for, 81 MDX notation, 222 mismatching types, 138 OrderBy property, 156 OrderByAttribute property, 156 parent-child attribute in dimension, 157 properties, 156 Select Dimension Attributes page, 129, 130 setting, 129 showing all attribute values for dimension, 150 attribute-store processing job, 336 authentication Analysis Services, 348–349 credentials, 101 user authenticating against Web application, 349 Windows Integrated Authentication, 348 authorization Analysis Services, 348, 349–352 double-hop problem, 348 roles, 349–352 autoexists feature, Analysis Services, 351 Average function, tuples, 228 Avg function, MDX, 241–242 axes, MDX queries, 233 Axis Properties configuring axis in SSRS 2008, 412  B Backup deployment method, 198 balance, account intelligence, 255 balanced hierarchy, 25 BI (business intelligence), 251–258 account intelligence, 254–255 Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark.  INDEX 440 Add Business Intelligence Wizard, 139 attribute ordering, 257 Business Intelligence Wizard, 251, 252 currency conversion, 257–258 custom member formulas, 256 dimension intelligence, 255 staging database solution, 48 time intelligence, 252–254 traditional BI architecture, 47 unary operators, 255–256 BIDS (Business Intelligence Development Studio), 75–86 AdventureWorks cube, 60 Aggregation Designer in, 361 Attribute Designer, 354 background, 8 browser, 12, 192 creating Analysis Services Project, 82–84 creating cubes, 170–178 creating data sources, 102 creating dimension, 127 creating DSV, 107–109 cube browser, 13 cube design wizard, 63 cube structures in SSAS, 59 data sources in Solution Explorer in, 98 database solutions, 82–86 deploying projects to development server from, 195 dimension design, 69 KPI designer in, 12 measure groups, 182, 184 measures, 182 Measures pane, 182 methods for creating time tables, 160 New Project Wizard, 8 opening SSAS database, 84–85 as part of project, 85–86 panes, 76–79 Partitions tab, 356, 357 Perspective Designer, 271 processing Analysis Services objects from, 208–214 Properties pane, 80–82 setting up Adventure Works, 434 Solution Explorer, 79–80 SSIS designer in, 346 tablix, 404 user-friendly interfaces for OLAP solutions, 373–429 Visual Studio, 75–76 BIDS 2005 Dimension Wizard, 69 storage of measures and measure groups, 71 BIDS 2008 Aggregation Designer, 71, 72 AMO design warnings, 72, 135–136 as stand-alone install, 76 cube specific tabs, 77 Dimension Wizard, 70 panes, 76, 77 solution tabs, 77 Usage-Based Optimization Wizard, 72 BIDS browser, 12 viewing measures, 192 Bill of Materials dimension, 137 Binding type using partitions, 357 BIOS data, PowerShell getting, 93 block computing, optimization SQL Server 2008, 68 bottom-up design, data warehouses, 37 Browser tab, dimension designer, 131, 132, 134 specifying dimension storage modes, 142, 147 browsers BIDS browser, 12, 192 dimension browser, 139 Build tab properties project properties dialog, 197 business intelligence see BI Business Intelligence Development Studio see BIDS Business Intelligence Wizard, 251, 252 ByAttribute/ByTable methods processing dimensions, 353  C caching pre-calculation, Analysis Services, 359 ProactiveCaching property, dimensions, 141 CALCULATE statement, 186 processing Analysis Services objects, 207, 208 calculated dimension members calculated measures, 185 calculated measures, 33–34, 185–193, 251 calculated dimension members, 185 Calculations tab, Cube Designer, 259–262 creating, 190–193 query-scoped calculated measure, 236 session-scoped calculated measure, 236 Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark. [...]... Services see SSAS SQL Server Analysis Services Properties screen Log On tab, 146 SQL Server Integration Services see SSIS SQL Server Management Studio see SSMS SQL Server option, notifications, 141 SQL Server Profiler, 337 SQL Server Reporting Services see SSRS SQL Server Standard Edition installation, software requirements, 44 SQL Server x64 (64-bit) installation, software requirements, 44 SQL Server x86... ProcessingPriority, dimensions, 140 ProClarity, 373, 401 Product dimension, 137 Product Key attribute, 154 Profiler trace, Analysis Services, 337 Profiler, SQL Server, 337 Program Menu Shortcuts option Adventure Works, 432 project properties see properties, project project properties dialog, 196, 197 projects creating, Analysis Services, 82–84 deploying, 195–198 importing database into, 86 New Project dialog, 83,... Process Mining Structure dialog Data Mining Model Designer, 290, 291 Process Options drop-down list Process Cube dialog, 334 Process Progress dialog processing Analysis Services objects from BIDS, 212, 213 Process Structure option Process Cube dialog, 335 Process Update option Process Cube dialog, 210, 334 processing Analysis Services objects, 204 automating cube processing, 339 availability when processing,... tasks, Analysis Services, 333–348 Analysis Management Objects, 340–343 automating cube processing, 339 executing actions as part of process, 345–348 Performance Monitor, 337–339 PowerShell, 343 processing architecture, 336–337 processing cubes, 333–335 processing options, 335–336 processing with XMLA queries, 340 scheduling processing of objects, 343–345 SQL Server Agent, 344–345 SQL Server Profiler,... watermark 457 INDEX SQL Server 2008 (cont.) performance, 65–69 query cancellation, 67 tools, 69–73 upgrading from 2005, 44 usage-based optimization, 71 writeback performance improvements, 68 SQL Server 2008 R2 Master Data Services, 311–313 PowerPivot support in, 311–320 SQL Server Agent scheduling OLAP maintenance, 216, 217 scheduling processing of Analysis Services objects, 344–345 SQL Server Analysis Services... from XMLA, 215 processing cubes, 333–335 scheduling cube processing, 343 Processing Option property, 197 Processing options tab Change Settings dialog, 211, 335 processing options, Process dialog, 210 Processing Order section Change Settings dialog, 335 processing properties, dimensions, 140 processing settings in SSIS, 347 ProcessingMode property dimensions, 140 measure groups, 185 ProcessingPriority,... Cube dialog, 210, 335 Process Default option Process Cube dialog, 210, 334 Process dialog BIDS, 208, 209 SSMS, 214 Process Dimension window creating dimensions, 131 specifying dimension storage modes, 147 Process Full option Process Cube dialog, 210, 334 Process Incremental option Process Cube dialog, 334 Process Index option Process Cube dialog, 210, 334 Process method processing Analysis Services objects... 431–434 Promotion dimension, 137 specifying storage modes, 142 properties see also dimension properties attribute properties, 156 Specify Configuration Properties screen, 200, 201 Properties dialog Configuration Manager button, 196 Properties pane, 80–82 attribute properties, 156 grouped properties, 81 selecting object in, 81 specifying dimension storage modes, 144 toolbar, 81 properties, project,... statements, 36 processing Analysis Services objects, 207 MdxMissingMemberMode property, dimensions, 140 measure groups, 184–185 AggregationPrefix property, 185 BIDS, 182 creating cubes, 170–171, 174, 175 DataAggregation property, 185 ErrorConfiguration property, 185 EstimatedRows property, 185 folders for, 57 IgnoreUnrelatedDimensions property, 185 metadata locations, 55 ProactiveCaching property, 185 processing... priorities ProcessingPriority, dimensions, 140 ProactiveCaching property dimensions, 141, 144 measure groups, 185 Process affected objects option Change Settings dialog, 336 Process checkbox, roles, 351 Process Clear Structure option Process Cube dialog, 335 Process Cube dialog AdventureWorks cube, 333–334 Change Settings button, 335 Process Options drop-down list, 334 Process Data option Process Cube . SQLServerDataMining.com: www.sqlserverdatamining.com Microsoft SQL Server 2008 Data Mining page: www.microsoft.com/sqlserver /2008/ en/us/data-mining.aspx Microsoft SQL Server. Operator on parent attribute, 139 SQL Server 2005, 8 SQL Server Analysis Services (SSAS), 8 SQL Server Profiler, 337 SQL Server Reporting Services, 401 synchronizing

Ngày đăng: 14/12/2013, 15:15

Từ khóa liên quan

Tài liệu cùng người dùng

  • Đang cập nhật ...

Tài liệu liên quan