Multidimensional Model Programming SQL Server 2012 Books Online
Total Page:16
File Type:pdf, Size:1020Kb
Multidimensional Model Programming SQL Server 2012 Books Online Summary: Analysis Services provides several APIs that you can use to program against an Analysis Services instance and the multidimensional databases that it makes available. This section describes the approaches available to developers who want to create custom applications using Analysis Services multidimensional solutions. You can use this information to choose the programming interface that best meets the requirements of a particular project. Analysis Services development projects can be based on managed or non-managed code that runs on a Windows platform, or other platforms that support HTTP access. Category: Reference Applies to: SQL Server 2012 Source: SQL Server 2012 Books Online (link to source content) E-book publication date: January 2013 Copyright © 2012 by Microsoft Corporation All rights reserved. No part of the contents of this book may be reproduced or transmitted in any form or by any means without the written permission of the publisher. Microsoft and the trademarks listed at http://www.microsoft.com/about/legal/en/us/IntellectualProperty/Trademarks/EN-US.aspx are trademarks of the Microsoft group of companies. All other marks are property of their respective owners. The example companies, organizations, products, domain names, email addresses, logos, people, places, and events depicted herein are fictitious. No association with any real company, organization, product, domain name, email address, logo, person, place, or event is intended or should be inferred. This book expresses the author’s views and opinions. The information contained in this book is provided without any express, statutory, or implied warranties. Neither the authors, Microsoft Corporation, nor its resellers, or distributors will be held liable for any damages caused or alleged to be caused either directly or indirectly by this book. Contents Multidimensional Model Programming .................................................................................................. 4 Understanding Microsoft OLAP Architecture ....................................................................................... 4 Logical Architecture .................................................................................................................................... 5 Logical Architecture Overview ............................................................................................................ 6 Server Objects ......................................................................................................................................... 13 Database Objects ............................................................................................................................... 13 Security Roles ...................................................................................................................................... 15 Dimension Objects ................................................................................................................................ 19 Dimensions ........................................................................................................................................... 20 Attributes and Attribute Hierarchies........................................................................................... 26 Attribute Relationships .................................................................................................................... 27 User Hierarchies.................................................................................................................................. 29 Write-Enabled Dimensions ............................................................................................................. 35 Dimension Translations ................................................................................................................... 36 Database Dimension Properties ................................................................................................... 37 Proactive Caching (Dimensions) ................................................................................................... 41 Cube Objects ........................................................................................................................................... 41 Cube Properties .................................................................................................................................. 42 Dimension Relationships ................................................................................................................. 44 Calculations .......................................................................................................................................... 49 Partitions ............................................................................................................................................... 50 Perspectives ......................................................................................................................................... 59 Cube Translations .............................................................................................................................. 61 Cube Cells ............................................................................................................................................. 62 Cube Storage ....................................................................................................................................... 65 Aggregations and Aggregation Designs ...................................................................................... 66 Physical Architecture ................................................................................................................................ 68 OLAP Engine Server Components ................................................................................................... 68 Server Process ......................................................................................................................................... 71 Object Naming........................................................................................................................................ 71 Maximum Capacity Specifications ................................................................................................... 74 Data Types in Analysis Services ........................................................................................................ 78 Local Cubes .............................................................................................................................................. 81 Clients ......................................................................................................................................................... 83 International Considerations ................................................................................................................. 88 Languages and Collations .................................................................................................................. 90 Translations .............................................................................................................................................. 96 Currency Conversions .......................................................................................................................... 98 Client Applications ............................................................................................................................. 104 Developing with ADOMD.NET ............................................................................................................... 105 ADOMD.NET Client Programming ................................................................................................... 106 ADOMD.NET Client Functionality ................................................................................................. 109 Migrating From ADO MD To ADOMD.NET............................................................................... 111 Establishing Connections in ADOMD.NET................................................................................. 119 Establishing Secure Connections in ADOMD.NET .............................................................. 120 Working with Connections and Sessions in ADOMD.NET .............................................. 127 Performing Transactions in ADOMD.NET .............................................................................. 130 Retrieving Metadata from an Analytical Data Source ........................................................... 131 Working with the ADOMD.NET Object Model .................................................................... 136 Working with Schema Rowsets in ADOMD.NET ................................................................. 137 Executing Commands Against an Analytical Data Source .................................................. 139 Retrieving Data from an Analytical Data Source ..................................................................... 140 Retrieving Data Using the CellSet ............................................................................................. 141 Retrieving Data Using the AdomdDataReader .................................................................... 143 Retrieving Data Using the XmlReader..................................................................................... 147 ADOMD.NET Server Programming