Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Part I
Part II
Design Fundamentals
Creating Dimensions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
Creating a Cube . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
Creating Advanced Measures and Calculations . . . . . . . . . . . . . 139
Advanced Dimension Design . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 177
4
5
6
7
8
9
10
11
12
13
Design
Part IV Production
197
215
233
257
293
313
Management
iii
Table of Contents
Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xi
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiii
Part I
www.microsoft.com/learning/booksurvey/
vi
Table of Contents
Part II
Design Fundamentals
4 Creating Dimensions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
Previewing Dimension Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
Creating a Standard Dimension . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
Deploying an Analysis Services Database . . . . . . . . . . . . . . . . . . . . . . . . . . 65
Modifying a Dimension . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
Creating a Time Dimension . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
Creating a Parent-Child Dimension . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
Table of Contents
Design
vii
viii
Table of Contents
Part IV Production
Management
Table of Contents
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 403
www.microsoft.com/learning/booksurvey/
ix
ffirs.indd ii
8/28/08 7:49:19 PM
ffirs.indd i
8/28/08 7:49:18 PM
Contents
Introduction
Chapter 1: Welcome to SQL Server Integration Services
SQL Server SSIS Historical Overview
Whats New in SSIS
Getting Started
Import and Export Wizard
The Business Intelligence Development Studio
Architecture
1
2
2
3
3
4
Packages
Tasks
Data Source Elements
Data Source Views
7
8
9
10
Precedence Constraints
11
Constraint Value
Conditional Expressions
11
11
Containers
Variables
Data Flow Elements
12
13
13
Sources
Destinations
Transformations
14
15
15
ftoc.indd xv
xxix
17
19
20
21
21
28
30
32
33
34
35
36
8/28/08 7:51:37 PM
Contents
The SSIS Package Designer
Control Flow
Connection Managers
Variables
Data Flow
Event Handlers
Package Explorer
Executing a Package
36
37
40
41
42
43
44
44
45
45
46
47
47
48
49
50
51
53
53
53
55
57
57
58
59
61
61
Data Profiler
File System Task
FTP Task
Web Service Task
XML Task
62
64
67
69
75
79
79
85
Workflow Tasks
Execute Package Task
Execute Process Task
Message Queue Task
Send Mail Task
98
98
102
104
105
xvi
ftoc.indd xvi
8/28/08 7:51:38 PM
Contents
WMI Data Reader Task
WMI Event Watcher Task
106
108
110
Transfer
Transfer
Transfer
Transfer
Transfer
Transfer
Database Task
Error Messages
Logins Task
Master Stored Procedures Task
Jobs Task
SQL Server Objects Task
Summary
Chapter 4: Containers
Task Host Containers
Sequence Containers
Groups
For Loop Container
Foreach Loop Container
Foreach File Enumerator Example
Foreach ADO Enumerator Example
Summary
Destinations
Data Mining Model Training
DataReader Destination
Dimension and Partition Processing
Excel Destination
Flat File Destination
OLE DB Destination
Raw File Destination
Recordset Destination
SQL Server and Mobile Destinations
110
112
112
113
114
115
116
117
117
117
118
119
122
123
125
129
131
131
132
132
132
135
136
142
142
142
142
143
144
144
144
145
145
146
146
146
xvii
ftoc.indd xvii
8/28/08 7:51:38 PM
Contents
Transformations
Synchronous versus Asynchronous Transformations
Aggregate
Audit
Cache Transform
Character Map
Conditional Split
Copy Column
Data Conversion
Data Mining Query
Derived Column
Export Column
Fuzzy Lookup
Fuzzy Grouping
Import Column
Lookup Transform
Merge Transform
Merge Join
Multicast
OLE DB Command
Percentage and Row Sampling
Pivot Transform
Unpivot
Row Count
Script Component
Slowly Changing Dimension
Sort
Term Extraction
Term Lookup
Union All
146
147
147
149
150
150
151
153
153
154
154
155
157
163
167
170
170
170
171
172
175
175
179
182
184
184
185
186
190
192
193
197
199
199
200
201
202
202
204
204
xviii
ftoc.indd xviii
8/28/08 7:51:38 PM
Contents
Unicode and Non-Unicode Conversion Issues
Casting in SSIS Expressions
Using Variables
Defining Variables
Variable Data Types
Summary
205
206
208
208
209
211
211
213
214
227
236
237
238
239
239
242
242
244
245
247
252
252
255
257
259
264
264
266
268
271
271
272
274
275
276
277
277
xix
ftoc.indd xix
8/28/08 7:51:39 PM
Contents
Typical Mainframe ETL with Data Scrubbing
Creating the Data Flow
Handling Dirty Data
Finalizing
Handling More Bad Data
278
280
280
284
285
288
Looping
Making the Package Dynamic
288
289
Summary
291
293
Scripting?
Getting Started in SSIS Scripting
293
295
296
297
298
300
302
Summary
306
306
307
308
315
322
329
330
330
331
334
335
335
336
337
347
347
350
353
xx
ftoc.indd xx
8/28/08 7:51:39 PM
Contents
Chapter 10: Loading a Data Warehouse
Data Profiling
Initial Execution of the Data Profiling Task
Reviewing the Results of the Data Profiling Task
Turning Data Profile Results into Actionable ETL Steps
Data Extraction
Dimension Table Loading
Loading a Simple Dimension Table
Loading a Complex Dimension Table
Considerations and Alternates to the SCD Transformation
Data Loading
Database Snapshots
The MERGE Operator
Summary
355
356
356
359
365
366
366
367
375
387
388
400
408
411
413
414
414
416
417
420
421
423
425
428
430
431
432
434
436
438
442
442
444
448
xxi
ftoc.indd xxi
8/28/08 7:51:39 PM
Contents
Chapter 12: Accessing Heterogeneous Data
Excel and Access
Limited 64-Bit Support
Working with Excel Files
Access
Oracle
Oracle Client Setup
Importing Oracle Data
Flat Files
Loading Flat Files
Extracting Data from Flat Files
ODBC
Other Heterogeneous Sources
Summary
Package Transactions
Single Package, Single Transaction
Single Package, Multiple Transactions
Two Packages, One Transaction
Single Package Using a Native Transaction in SQL Server
Error Outputs
Scaling Out
Architectural Improvements
Scale Out Memory Pressures
Scale Out by Staging Data
Summary
449
450
450
452
452
460
460
460
463
463
476
481
481
483
486
489
490
491
491
492
496
499
501
502
503
506
508
509
511
514
514
515
515
520
521
521
522
525
xxii
ftoc.indd xxii
8/28/08 7:51:40 PM
Contents
Data Processing in the Data Flow
Memory Buffer Architecture
Types of Transformations
Advanced Data Flow Execution Concepts
526
527
529
538
548
548
555
560
562
565
567
568
568
569
Summary
570
570
585
590
594
594
605
605
606
608
609
609
610
611
614
620
621
623
623
624
625
xxiii
ftoc.indd xxiii
8/28/08 7:51:40 PM
Contents
Event Handling
Events
Inventory Example
Event Handler Inheritance
Breakpoints
Error Rows
Logging
Logging Providers
Log Events
Summary
633
634
635
643
645
648
653
654
654
659
661
662
662
663
663
664
Design-Time Functionality
Runtime
Connection Time
664
668
670
670
Preparation
Building the Source Component
Building the Transform Component
Building the Destination Adapter
671
678
690
702
709
710
710
710
712
713
716
716
717
717
718
719
722
725
727
xxiv
ftoc.indd xxiv
8/28/08 7:51:40 PM
Contents
Further Development
Runtime Connections
Component Properties
Handling Errors and Warnings
Column Properties
Other Considerations
Summary
Package Configurations
Creating a Configuration
Programming the Configuration Object
Configuration Object
Summary
732
732
735
737
739
740
740
741
741
742
743
744
745
750
752
753
755
756
765
767
768
771
772
773
774
775
776
777
782
783
786
787
788
797
802
808
xxv
ftoc.indd xxv
8/28/08 7:51:41 PM
Contents
Chapter 22: Administering SSIS
Package Configuration
Deployment Utility
Creating the Deployment Manifest
The Package Deployment Wizard
Management Studio
Running Packages with DTExecUI
Security
Command-Line Utilities
DTExec
DTUtil
Scheduling a Package
Proxy Accounts
64-Bit Issues
Performance Counters
Summary
Data Architecture
File Storage Location Setup
Bank ACH Payments
Lockbox Files
PayPal or Direct Credits to Corporate Account
Case Study Database Model
Database Setup
809
809
814
814
815
818
820
822
824
825
826
832
834
834
835
836
838
839
840
841
843
843
844
845
845
846
849
850
850
851
851
852
853
853
854
863
864
894
913
919
xxvi
ftoc.indd xxvi
8/28/08 7:51:41 PM
Contents
Case Study Invoice Matching Process
Matching Process Control Flow
Matching Process High-Confidence Data Flow
Matching Process Medium-Confidence Data Flow
Interpreting the Results
Summary
Index
919
920
923
928
932
934
934
935
935
937
xxvii
ftoc.indd xxvii
8/28/08 7:51:41 PM
ffirs.indd xii
11/13/08 5:01:08 PM
xxv
Introduction .............................................................................................
xxvii
ffirs.indd i
11/13/08 5:01:01 PM
685
693
715
735
Index ........................................................................................................
759
ffirs.indd ii
11/13/08 5:01:02 PM
Contents
Foreword
Introduction xxvii
xxv
Solution Types
Out-of-the-Box Reports
Server-Based Reports
User-Designed and Ad hoc Reports
Designing Repor ts
Simple Application Integration
Launching Reports from an Application
User Interaction and Dynamic Reporting
Intranet and Internet Report Access
4
5
7
8
8
9
10
11
11
12
12
13
13
15
15
16
17
17
18
19
19
ftoc.indd xv
20
21
23
24
24
11/13/08 5:08:51 PM
Contents
Corporate Repor ting
Department and P ersonal Repor ting
Ad hoc and Self-Ser vice Repor ting
BI Solution Components
Report Data Sources
The BI Data Process
The BI Maturity Continuum
Report Types
Data Complexity and Report Performance
Summary
Summary
24
25
26
26
26
28
29
30
35
38
39
39
40
58
59
60
62
62
63
63
64
64
65
66
66
67
67
67
67
68
68
68
68
69
69
69
70
70
xvi
ftoc.indd xvi
11/13/08 5:08:51 PM
Contents
Report Viewer Control
Summary
70
71
72
73
74
75
75
75
76
77
78
79
80
81
83
83
84
84
86
86
89
90
91
92
98
99
104
108
108
108
108
109
110
111
Data Regions
Textboxes
Lines
Rectangles
111
111
113
113
xvii
ftoc.indd xvii
11/13/08 5:08:52 PM
Contents
Images
Subreports
The Tablix
Chart Essentials
Chart Type Categories
Gauges
113
114
116
119
120
124
Summary 128
Page Layout
Designing Tabular Reports
Defining Table Groups
Adding Totals and Subtotals
Formatting Report Data
Introduction to Dynamic Formatting
129
130
130
131
131
131
132
132
134
138
154
154
155
156
156
162
170
173
174
174
Summary 176
177
179
179
180
182
182
182
188
189
197
Filtering a Query
199
xviii
ftoc.indd xviii
11/13/08 5:08:52 PM
Contents
Parameter Concepts
Filtering Data with Query Parameters
Using Stored Procedures
199
202
214
218
Microsoft Access
Microsoft Excel
Oracle P/L SQL
SyBase Adaptive Server
219
222
223
224
Best Practices
Summary 225
Designing Subrepor ts
Federating Data with a Subreport
Navigating Repor ts
Creating a Document Map
Links and Drill-through Reports
Chart Repor ts
Chart Types
Column Charts
Area and Line Charts
Pie and Doughnut Charts
Bubble and Stock Charts
The Anatomy of a Chart
225
227
228
230
232
235
238
239
240
240
244
244
252
253
259
259
261
263
268
269
271
273
274
277
282
283
285
288
288
290
291
xix
ftoc.indd xix
11/13/08 5:08:52 PM
Contents
Chart Design Basics
Adding a Data Series
Adding a Secondary Axis
Using Multiple Chart Areas
292
298
299
302
Summary 304
Non-Additive Measures
Using the Aggregate Function
Report Recipes
Multiple Criterion Report Filtering
Customizing Gauges with External Images
Creating a Business Scorecard
Reporting on SharePoint 3.0 List Data
Report Localization
Dynamic Grouping
309
309
311
312
312
313
336
338
339
340
342
342
342
345
346
346
348
348
350
351
354
355
357
357
360
362
366
371
377
xx
ftoc.indd xx
11/13/08 5:08:53 PM
Contents
Dynamic Fields and Columns
Using Advanced and Third-Party Controls for Parameter Selection
Creating Sparklines
380
382
384
Summary 386
391
391
392
395
398
404
404
408
413
414
419
419
420
421
Table Layout
Matrix Layout
Chart Layout
Formatting Repor ts
Adding Text
Adjusting Column Width and Alignment
Modifying Font and Background Color
422
425
430
434
434
435
436
438
438
443
443
447
xxi
ftoc.indd xxi
11/13/08 5:08:53 PM
Contents
Part V: Administering Repor ting Ser vices
Chapter 13: Content Management
451
452
456
Folders
Shared Data Sources
Report Models
Reports
Report Resources
Shared Schedules
Item-Level Security
Content-Management Automation
The RS Utility
Reporting Services Scripts
The RSScripter
457
461
463
466
480
480
483
492
492
494
500
Summary 501
503
503
504
508
510
511
511
513
515
516
Monitoring 516
Set-up Logs
Windows Application Event Logs
Trace Logs
Execution Logs
Performance Counters
Server Management Reports
516
517
517
520
522
527
Configuration 528
Memory Management
URL Reservations
E-mail Delivery
Rendering Extensions
528
529
531
533
xxii
ftoc.indd xxii
11/13/08 5:08:53 PM
Contents
My Reports
535
Summary 537
Programmatic Rendering
Common Scenarios
Rendering through Windows
Rendering to the Web
541
542
542
543
549
555
557
558
559
578
587
590
Summary 594
Native Mode
595
596
597
597
598
598
Installation
Report Viewer
Report Explorer
598
600
601
Integrated Mode
603
Installation/Configuration
Publishing Reports
SharePoint Site Settings
Report Models
Report Builder 1.0
Report Management
SQL Server Reporting Services Report Viewer for Integrated Mode
Architecture 631
Native Mode ver sus Integrated Mode
Summary 634
603
611
620
621
624
626
629
632
xxiii
ftoc.indd xxiii
11/13/08 5:08:54 PM
Contents
Chapter 17: Extending Repor ting Ser vices
Extension through Interfaces
What Is an Interface?
Interface Language Differences
Data Processing Extensions A Detailed Look
635
637
637
638
640
643
643
644
647
655
656
658
660
673
677
680
Summary 684
685
693
715
xxiv
ftoc.indd xxiv
11/13/08 5:08:54 PM