


































Estude fácil! Tem muito documento disponível na Docsity
Ganhe pontos ajudando outros esrudantes ou compre um plano Premium
Esta página não é visível na pré-visualização
Não perca as partes importantes!



































Spreading the knowledge of innovators oreilly.com
Buy 2 books, get the 3rd FREE!
Published with the authorization of Microsoft Corporation by: O’Reilly Media, Inc. 1005 Gravenstein Highway North Sebastopol, California 95472
Copyright © 2012 by Wee-Hyong Tok, Rakesh Parida, Matt Masson, Xiaoning Ding, Kaarthik Sivashanmugam. 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.
ISBN: 978-0-7356-6585-
1 2 3 4 5 6 7 8 9 QG 7 6 5 4 3 2
Printed and bound in the United States of America.
Microsoft Press books are available through booksellers and distributors worldwide. If you need support related to this book, email Microsoft Press Book Support at [email protected]. Please tell us what you think of this book at http://www.microsoft.com/learning/booksurvey.
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 authors' views and opinions. The information contained in this book is provided without any express, statutory, or implied warranties. Neither the authors, O’Reilly Media, Inc., 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.
Acquisitions and Developmental Editor: Russell Jones Production Editor: Melanie Yarbrough Editorial Production: Stan Info Solutions Technical Reviewer: boB Taylor Copyeditor: Teresa Horton Indexer: WordCo Indexing Services, Inc. Cover Design: Twist Creative • Seattle Cover Composition: ContentWorks, Inc. Illustrator: Rebecca Demarest
vii
Contents
Foreword....................................................... xxi Introduction................................................... xxiii
Common Usage Scenarios for SSIS.................................. 4 Consolidation of Data from Heterogeneous Data Sources........ 4 Movement of Data Between Systems........................... 9 Loading a Data Warehouse.................................. 12 Cleaning, Formatting, or Standardization of Data............... 16 Identification, Capture, and Processing of Data Changes......... 17 Coordination of Data Maintenance, Processing, or Analysis...... 18 Evolution of SSIS................................................. 20 Setting Up SSIS.................................................. 21 SQL Server Features Needed for Data Integration............... 22 SQL Server Editions and Integration Services Features........... 24 Summary........................................................
Control Flow..................................................... 28 Tasks...................................................... 28 Precedence Constraints...................................... 30 Variables and Expressions.................................... 31 Containers................................................. 32 Connection Managers....................................... 35
What do you think of this book? We want to hear from you! Microsoft is interested in hearing your feedback so we can continually improve our books and learning resources for you. To participate in a brief online survey, please visit: microsoft.com/learning/booksurvey
ix
xiii
What do you think of this book? We want to hear from you! Microsoft is interested in hearing your feedback so we can continually improve our books and learning resources for you. To participate in a brief online survey, please visit:
xix
SSIS Overview
Common Usage Scenarios for Integration Services............ 4 evolution of Integration Services........................... 20 Setting Up Integration Services............................ 21 Summary................................................ 25
Enterprises depend on data integration to turn data into valuable insights and decisions. Enterprise data integration is a complicated problem due to the heterogeneity of data sources and formats, ever-increasing data volumes, and the poor quality of data. Data is typically stored in disparate sys- tems and the result is that there are differences in data format or schema that must be resolved. The constantly decreasing costs of storage lead to increased data retention and a concomitant increase in the volume of data that needs to be processed. In turn, this results in an ever-increasing demand for scalable and high-performance data integration solutions so organizations can obtain timely insights from the collected data. The diversity of data and inconsistent duplication cause quality problems that can impact the accuracy of analytical insights and thus also affect the quality and value of the decisions. Data integration projects need to deal with these challenges and effectively consume data from a variety of sources (e.g., databases, spreadsheets, files, etc.), which requires that they clean, cor- relate, transform, and move the source data to the destination systems. This process is further com- plicated because many organizations have round-the-clock dependencies on data stores; therefore, data integration must often be frequent and integration operations must be completed as quickly as possible. Microsoft SQL Server Integration Services (SSIS) technology addresses these challenges and provides a platform for building and managing data integration solutions. The flexible, extensible, scalable, high-performance platform and toolset in SSIS caters to enterprise demands for traditional data extract-transform-load (ETL) processes as well as other data integration needs. SSIS is a feature of Microsoft SQL Server that provides seamless interoperability with other features shipped with both SQL Server and with other Microsoft products. Typical data integration scenarios that you can address using SSIS include the following:
4 PaRT I Overview
■ ■ (^) Consolidating data from heterogeneous data sources ■ ■ (^) Moving data between systems ■ ■ (^) Loading data warehouses ■ ■ (^) Cleaning, formatting, or standardizing data ■ ■ (^) Identifying, capturing, and processing data changes ■ ■ (^) Coordinating data maintenance, processing, or analysis Some data processing scenarios require specialized technology. SSIS is not suitable for the follow- ing types of data processing: ■ ■ (^) Processing complex business rules on data ■ ■ (^) Coordinating, acquiring, and processing data in inter-business processes ■ ■ (^) Processing event messages in real time ■ ■ (^) Coordinating data communication between systems ■ ■ (^) Building a federated view of data sources ■ ■ (^) Unstructured data processing and integration
In this section, you’ll examine some common data integration scenarios in detail and get an overview of how key SSIS features help in each of those scenarios.
Consolidation of Data from Heterogeneous Data Sources In an organization, data is typically not contained in one system but spread all over. Different applications might have their own data stores with different schema. Similarly, different parts of the organization might have their own locally consolidated view of data, or legacy systems might be isolated, making the data available to rest of the organization at regular intervals. To make important organization-wide decisions that derive value from all this data, it is necessary to pull data from all parts of the organization, massaging and transforming it into a consistent state and shape. The need for data consolidation also arises during organization acquisitions or mergers. Support- ing connectivity to heterogeneous stores and extracting data is a key feature of any data integration software. SSIS supports connectivity to a wide range of data stores using out-of-the-box adapters and extensibility features. Source adapters read data from external sources into SSIS, whereas destination adapters write data from SSIS to external destinations. Some of the most important built-in source and destination adapters in SSIS are the following: ■ ■ (^) OLE DB Source and Destination