Acknowledgments |
|
xiii | |
Introduction |
|
xv | |
|
Installing and Configuring SQL Server 2005 |
|
|
1 | (46) |
|
|
2 | (4) |
|
Operating Systems and Supported Benefits |
|
|
3 | (1) |
|
|
4 | (2) |
|
Installing SQL Server 2005 |
|
|
6 | (10) |
|
|
6 | (1) |
|
|
7 | (9) |
|
|
16 | (1) |
|
Configuring SQL Server 2005 |
|
|
16 | (11) |
|
|
17 | (2) |
|
|
19 | (3) |
|
The SQL Server Surface Area Configuration Tool |
|
|
22 | (3) |
|
SQL Server Configuration Manager |
|
|
25 | (2) |
|
|
27 | (1) |
|
Connecting to SQL Server 2005 |
|
|
27 | (5) |
|
SQL Server Management Studio (SSMS) |
|
|
27 | (1) |
|
|
28 | (1) |
|
Dedicated Administrator Connection (DAC) |
|
|
29 | (3) |
|
Examining the Installation |
|
|
32 | (3) |
|
|
35 | (1) |
|
Troubleshooting the Installation or Operation |
|
|
35 | (4) |
|
|
36 | (1) |
|
|
37 | (2) |
|
|
39 | (8) |
|
|
41 | (1) |
|
Summary of What You Need to Know |
|
|
42 | (1) |
|
|
42 | (2) |
|
|
44 | (3) |
|
SQL Server 2005 Database Basics |
|
|
47 | (44) |
|
|
47 | (19) |
|
|
48 | (3) |
|
New Large Value Data Types |
|
|
51 | (1) |
|
|
52 | (3) |
|
|
55 | (4) |
|
|
59 | (3) |
|
|
62 | (4) |
|
|
66 | (6) |
|
|
66 | (4) |
|
|
70 | (1) |
|
|
70 | (2) |
|
|
72 | (7) |
|
|
72 | (2) |
|
|
74 | (5) |
|
Schemas and Naming Conventions |
|
|
79 | (12) |
|
|
79 | (2) |
|
|
81 | (1) |
|
|
82 | (1) |
|
Summary of What You Need to Know |
|
|
83 | (1) |
|
|
83 | (4) |
|
|
87 | (4) |
|
|
91 | (50) |
|
|
91 | (14) |
|
|
93 | (1) |
|
|
94 | (7) |
|
|
101 | (3) |
|
Exploring Relationships in AdventureWorks |
|
|
104 | (1) |
|
Normalization and Normal Forms |
|
|
105 | (6) |
|
|
106 | (1) |
|
|
107 | (1) |
|
|
108 | (1) |
|
|
109 | (1) |
|
|
110 | (1) |
|
|
111 | (6) |
|
|
116 | (1) |
|
|
117 | (8) |
|
|
117 | (2) |
|
Federations of Servers and Federated Databases |
|
|
119 | (1) |
|
|
119 | (6) |
|
|
125 | (16) |
|
|
125 | (1) |
|
|
125 | (8) |
|
|
133 | (1) |
|
Summary of What You Need to Know |
|
|
133 | (1) |
|
|
134 | (4) |
|
|
138 | (3) |
|
|
141 | (64) |
|
|
141 | (5) |
|
|
142 | (1) |
|
|
142 | (1) |
|
Case Sensitive and Case Insensitive |
|
|
143 | (3) |
|
|
146 | (28) |
|
|
146 | (2) |
|
|
148 | (8) |
|
|
156 | (2) |
|
|
158 | (4) |
|
|
162 | (12) |
|
|
174 | (7) |
|
|
174 | (1) |
|
|
175 | (2) |
|
|
177 | (4) |
|
Advanced Query Techniques |
|
|
181 | (24) |
|
Common Table Expressions (CTEs) |
|
|
181 | (4) |
|
|
185 | (1) |
|
|
186 | (2) |
|
|
188 | (4) |
|
|
192 | (1) |
|
Summary of What You Need to Know |
|
|
193 | (1) |
|
|
194 | (8) |
|
|
202 | (3) |
|
|
205 | (38) |
|
|
205 | (4) |
|
|
207 | (1) |
|
|
208 | (1) |
|
|
209 | (6) |
|
|
210 | (1) |
|
|
210 | (1) |
|
|
211 | (4) |
|
|
215 | (28) |
|
|
215 | (5) |
|
|
220 | (4) |
|
|
224 | (3) |
|
Using OPENXML to Shred XML Data |
|
|
227 | (1) |
|
|
228 | (1) |
|
|
228 | (6) |
|
|
234 | (1) |
|
Summary of What You Need to Know |
|
|
235 | (1) |
|
|
235 | (5) |
|
|
240 | (3) |
|
Advanced Database Objects |
|
|
243 | (60) |
|
|
243 | (15) |
|
An Overview of the Functions |
|
|
244 | (1) |
|
|
244 | (10) |
|
|
254 | (4) |
|
|
258 | (29) |
|
|
258 | (1) |
|
|
259 | (12) |
|
|
271 | (6) |
|
|
277 | (7) |
|
|
284 | (2) |
|
Recursive and Nested Triggers |
|
|
286 | (1) |
|
Common Language Runtime (CLR) Integration |
|
|
287 | (16) |
|
|
288 | (5) |
|
|
293 | (1) |
|
Summary of What You Need to Know |
|
|
294 | (1) |
|
|
294 | (6) |
|
|
300 | (3) |
|
|
303 | (58) |
|
|
303 | (5) |
|
|
305 | (1) |
|
|
306 | (2) |
|
|
308 | (1) |
|
|
308 | (1) |
|
|
308 | (15) |
|
When and Why to Create an Index |
|
|
308 | (7) |
|
|
315 | (1) |
|
The Leaf and Nonleaf Levels |
|
|
316 | (1) |
|
|
316 | (3) |
|
|
319 | (1) |
|
|
320 | (2) |
|
|
322 | (1) |
|
|
323 | (10) |
|
|
323 | (4) |
|
Viewing and Updating Statistics |
|
|
327 | (6) |
|
|
333 | (2) |
|
Full-Text Catalogs and Full-Text Indexes |
|
|
333 | (2) |
|
Database Engine Tuning Advisor (DTA) |
|
|
335 | (5) |
|
|
336 | (4) |
|
|
340 | (6) |
|
Dynamic Management Views and Functions |
|
|
340 | (1) |
|
|
341 | (3) |
|
|
344 | (1) |
|
|
344 | (2) |
|
|
346 | (15) |
|
|
346 | (4) |
|
|
350 | (1) |
|
Summary of What You Need to Know |
|
|
351 | (1) |
|
|
351 | (6) |
|
|
357 | (4) |
|
|
361 | (64) |
|
|
362 | (15) |
|
|
362 | (2) |
|
|
364 | (1) |
|
|
365 | (6) |
|
|
371 | (2) |
|
|
373 | (4) |
|
|
377 | (20) |
|
|
384 | (2) |
|
|
386 | (5) |
|
|
391 | (1) |
|
|
392 | (5) |
|
|
397 | (11) |
|
|
397 | (6) |
|
|
403 | (5) |
|
Designing the Security Strategy |
|
|
408 | (1) |
|
|
408 | (1) |
|
|
409 | (1) |
|
|
409 | (16) |
|
|
410 | (2) |
|
|
412 | (6) |
|
|
418 | (1) |
|
Summary of What You Need to Know |
|
|
419 | (1) |
|
|
419 | (4) |
|
|
423 | (2) |
|
|
425 | (74) |
|
An Overview of Stored Procedures |
|
|
425 | (6) |
|
|
426 | (1) |
|
|
427 | (1) |
|
|
428 | (1) |
|
|
428 | (1) |
|
Types of Stored Procedures |
|
|
428 | (3) |
|
|
431 | (21) |
|
An Overview of Transactions |
|
|
432 | (1) |
|
|
432 | (3) |
|
|
435 | (10) |
|
|
445 | (7) |
|
|
452 | (1) |
|
User-Defined Stored Procedures |
|
|
452 | (14) |
|
Creating Stored Procedures |
|
|
453 | (11) |
|
Recompiling Stored Procedures |
|
|
464 | (2) |
|
|
466 | (12) |
|
|
466 | (7) |
|
|
473 | (5) |
|
CLR-Integrated Stored Procedures |
|
|
478 | (21) |
|
|
484 | (1) |
|
Summary of What You Need to Know |
|
|
484 | (1) |
|
|
485 | (9) |
|
|
494 | (5) |
|
|
499 | (74) |
|
A Disaster Recovery Overview |
|
|
499 | (1) |
|
|
500 | (6) |
|
|
501 | (4) |
|
Restoring from the Transaction Log |
|
|
505 | (1) |
|
|
506 | (4) |
|
|
506 | (1) |
|
The Bulk-Logged Recovery Model |
|
|
507 | (1) |
|
The Simple Recovery Model |
|
|
507 | (1) |
|
|
508 | (1) |
|
Setting the Recovery Model |
|
|
509 | (1) |
|
|
510 | (17) |
|
|
510 | (6) |
|
|
516 | (2) |
|
|
518 | (3) |
|
Backup and Restore Commands |
|
|
521 | (1) |
|
|
522 | (5) |
|
|
527 | (11) |
|
|
527 | (1) |
|
Restoring with Norecovery and Recovery |
|
|
528 | (1) |
|
|
529 | (2) |
|
Restoring to a Point in Time (STOPAT) |
|
|
531 | (3) |
|
|
534 | (1) |
|
Restoring Files and Filegroups |
|
|
535 | (1) |
|
|
535 | (1) |
|
|
536 | (2) |
|
Protecting System Databases |
|
|
538 | (3) |
|
|
538 | (3) |
|
|
541 | (12) |
|
Benefits and Requirements |
|
|
542 | (9) |
|
Procedures for Changing Roles |
|
|
551 | (2) |
|
|
553 | (4) |
|
|
553 | (1) |
|
Creating and Using a Database Snapshot |
|
|
554 | (1) |
|
|
555 | (1) |
|
Recovering Data from a Snapshot |
|
|
555 | (2) |
|
|
557 | (9) |
|
|
557 | (1) |
|
|
558 | (1) |
|
|
558 | (3) |
|
Implement Database Mirroring |
|
|
561 | (5) |
|
High-Availability Comparisons |
|
|
566 | (7) |
|
|
568 | (1) |
|
Summary of What You Need to Know |
|
|
569 | (1) |
|
|
569 | (2) |
|
|
571 | (2) |
|
|
573 | (44) |
|
|
573 | (15) |
|
Service Broker Object Types |
|
|
574 | (1) |
|
Service Broker Applications |
|
|
575 | (7) |
|
|
582 | (1) |
|
Implementing Event Notifications |
|
|
583 | (5) |
|
Web Services and HTTP Endpoints |
|
|
588 | (7) |
|
|
590 | (5) |
|
|
595 | (9) |
|
|
596 | (2) |
|
Configuring Logins for a Linked Server |
|
|
598 | (4) |
|
|
602 | (1) |
|
Opendatasource and Openrowset |
|
|
602 | (2) |
|
|
604 | (13) |
|
Multiple Active Result Sets (MARS) |
|
|
604 | (2) |
|
|
606 | (2) |
|
|
608 | (1) |
|
Summary of What You Need to Know |
|
|
609 | (1) |
|
|
609 | (5) |
|
|
614 | (3) |
|
|
617 | (48) |
|
SQL Server Reporting Services (SSRS) |
|
|
617 | (28) |
|
Reporting Services Databases |
|
|
618 | (1) |
|
|
619 | (3) |
|
|
622 | (3) |
|
|
625 | (10) |
|
Creating and Modifying Reports in BIDS |
|
|
635 | (9) |
|
|
644 | (1) |
|
|
645 | (1) |
|
|
645 | (12) |
|
|
647 | (10) |
|
Notification Services vs. SQL Server Agent |
|
|
657 | (1) |
|
|
657 | (8) |
|
|
659 | (1) |
|
Summary of What You Need to Know |
|
|
659 | (1) |
|
|
660 | (2) |
|
|
662 | (3) |
|
|
665 | (74) |
|
|
665 | (15) |
|
Measuring Counters in System Monitor |
|
|
666 | (14) |
|
|
680 | (24) |
|
|
680 | (7) |
|
SQL Server Agent Properties |
|
|
687 | (1) |
|
Creating Operators, Alerts, and Jobs |
|
|
687 | (14) |
|
|
701 | (3) |
|
|
704 | (7) |
|
|
711 | (11) |
|
|
711 | (7) |
|
|
718 | (4) |
|
Dynamic Management Views and Functions |
|
|
722 | (17) |
|
|
727 | (3) |
|
|
730 | (1) |
|
Summary of What You Need to Know |
|
|
730 | (1) |
|
|
731 | (4) |
|
|
735 | (4) |
|
|
739 | (44) |
|
|
740 | (19) |
|
|
740 | (2) |
|
|
742 | (1) |
|
Preventing Locks and Deadlocks |
|
|
743 | (1) |
|
Troubleshooting Locks and Deadlocks |
|
|
743 | (11) |
|
Profiler and System Monitor |
|
|
754 | (5) |
|
Transaction Isolation Levels |
|
|
759 | (4) |
|
|
760 | (1) |
|
Picking a Transaction Isolation Level |
|
|
760 | (3) |
|
|
763 | (5) |
|
|
764 | (1) |
|
|
765 | (3) |
|
|
768 | (15) |
|
|
770 | (1) |
|
|
770 | (4) |
|
|
774 | (1) |
|
Summary of What You Need to Know |
|
|
775 | (1) |
|
|
775 | (5) |
|
|
780 | (3) |
|
|
783 | (50) |
|
|
783 | (14) |
|
|
784 | (2) |
|
|
786 | (8) |
|
|
794 | (3) |
|
SQL Server Integration Services (SSIS) |
|
|
797 | (20) |
|
|
798 | (1) |
|
|
799 | (1) |
|
Business Intelligence Development Studio (BIDS) |
|
|
800 | (1) |
|
|
801 | (10) |
|
|
811 | (2) |
|
Optimizing an SSIS Solution |
|
|
813 | (4) |
|
|
817 | (16) |
|
|
818 | (4) |
|
|
822 | (1) |
|
Openrowset and Opendatasource |
|
|
822 | (3) |
|
|
825 | (1) |
|
|
826 | (1) |
|
Summary of What You Need to Know |
|
|
827 | (1) |
|
|
827 | (4) |
|
|
831 | (2) |
|
|
833 | (4) |
|
|
833 | (1) |
|
Installing and Running MasterExam |
|
|
833 | (1) |
|
|
833 | (1) |
|
|
834 | (1) |
|
|
834 | (1) |
|
|
834 | (1) |
|
|
835 | (1) |
|
|
835 | (2) |
|
LearnKey Technical Support |
|
|
835 | (2) |
|
Appendix B Exam 70-431: What You Need to Know to Pass |
|
|
837 | (6) |
|
|
837 | (1) |
|
|
837 | (1) |
|
|
838 | (1) |
|
|
839 | (4) |
|
Chapters Covering 70-431 Topics |
|
|
839 | (4) |
|
Appendix C Inside the Design Exam |
|
|
843 | (8) |
|
|
843 | (8) |
|
|
843 | (3) |
|
|
846 | (1) |
|
Sample Scenario Questions |
|
|
846 | (1) |
|
Sample Scenario: MCITPSuccess Corporation |
|
|
847 | (2) |
|
|
849 | (1) |
|
|
850 | (1) |
|
Appendix D Exam 70-441: What You Need to Know to Pass |
|
|
851 | (4) |
|
|
851 | (1) |
|
|
851 | (1) |
|
|
852 | (3) |
|
Chapters Covering 70-441 Topics |
|
|
852 | (3) |
|
Appendix E Exam 70-442: What You Need to Know to Pass |
|
|
855 | (12) |
|
|
855 | (1) |
|
|
855 | (1) |
|
|
856 | (11) |
|
Chapters Covering 70-442 Topics |
|
|
856 | (3) |
|
Appendix F SQL Database Design Object Summary |
|
|
859 | (8) |
Glossary |
|
867 | (16) |
Index |
|
883 | |