SQL Server 2005 Distilled By Eric L Brown Publisher: Addison Wesley Professional Pub Date: March 20, 2006 Print ISBN-10: 0-321-34979-2 Print ISBN-13: 978-0-321-34979-8 Pages: 336 Table of Contents | Index Need to get your arms around Microsoft SQL Server 2005 fast, without getting buried in the details? Need to make fundamental decisions about deploying, using, or administering Microsoft's latest enterprise database? Need to understand what's new in SQL Server 2005, and how it fits with your existing IT and business infrastructure? SQL Server 2005 Distilled delivers the answers you needquickly, clearly, and objectively Former SQL Server team member Eric L Brown offers realistic insight into every significant aspect of SQL Server 2005: its new features, architecture, administrative tools, security model, data management capabilities, development environment, and much more Brown draws on his extensive experience consulting with enterprise users, outlining realistic usage scenarios that leverage SQL Server 2005's strengths and minimize its limitations Coverage includes Architectural overview: how SQL Server 2005's features work together and what it means to you Security management, policies, and permissions: gaining tighter control over your data SQL Server Management Studio: Microsoft's new, unified tool suite for authoring, management, and operations Availability enhancements: online restoration, improved replication, shorter maintenance/recovery windows, and more Scalability improvements, including a practical explanation of SQL Server 2005's complex table partitioning feature Data access enhancements, from ADO.NET 2.0 to XML SQL Server 2005's built-in NET CLR: how to use it, when to use it, and when to stay with T-SQL Business Intelligence Development Studio: leveraging major improvements in reporting and analytics Visual Studio integration: improving efficiency throughout the coding and debugging process Simple code examples demonstrating SQL Server 2005's most significant new features SQL Server 2005 Distilled By Eric L Brown Publisher: Addison Wesley Professional Pub Date: March 20, 2006 Print ISBN-10: 0-321-34979-2 Print ISBN-13: 978-0-321-34979-8 Pages: 336 Table of Contents | Index Copyright Microsoft Windows Server System Series Preface How to Use This Book Who Should Read This Book How This Book Is Organized Acknowledgments About the Author Chapter 1 Introduction to SQL Server 2005 SQL Server 2005 Editions Database Scalability Revisited The Database As an Application Server Improving the Availability of SQL Server Systems High Availability in SQL Server 2005 General Data Availability Very Large Database Maintenance Overview of SQL Server 2005 Business Intelligence The Most Sublime Features of SQL Server 2005 Summary Chapter 2 What Everyone Should Know About Security Essential SQL Server Engine Security Features The Concept of End-Point Security Managed Code Security Analysis Services Security SQL Server Integration Services Security Features Securing the Server Summary Chapter 3 Enterprise Data Management SQL Server Management Studio SQL Server 2005 Infrastructure Management Operations Management Tools SQL Server 2005 Remote Management Features SQL Server Monitoring Managing Very Large Databases SQL Server Replication Enhancements High Availability for the Masses General Data Availability Indexed View Common Language Runtime and Database Administrator Business Intelligence and the Database Administrator Summary Chapter 4 Features for Database Development Visual Studio Integration NET Framework Integration SQL Server Managed Provider XML Functionality SQL Server As an Application Server Platform SQL Server Mobile Edition International Features Added in SQL Server 2005 Full-Text Search SQL Server Express Summary Chapter 5 Overview of Business Intelligence Analysis Services Overview SQL Server Integration Services Summary Chapter 6 The Code Chapter Transaction Exception Handling Large Object Programming Model New Analytic Functions Table Sample Clause New APPLY Operator PIVOT and UNPIVOT Operators Recursive Queries TOP Enhancements DDL Triggers DML Output Extensions for Queuing Support Indexed Views Persisted Computed Columns Synonyms Security-Related Transact-SQL Working with Assemblies Working with XML Dynamic Management Views Database Features to Turn Off Table Partitioning Summary Appendix A SQL Server 2005 System Information Appendix B System Tables and View in SQL Server 2005 Appendix C SQL Server Built-In Functions Index Copyright Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks Where those designations appear in this book, and the publisher was aware of a trademark claim, the designations have been printed with initial capital letters or in all capitals The author and publisher have taken care in the preparation of this book, but make no expressed or implied warranty of any kind and assume no responsibility for errors or omissions No liability is assumed for incidental or consequential damages in connection with or arising out of the use of the information or programs contained herein The publisher offers excellent discounts on this book when ordered in quantity for bulk purchases or special sales, which may include electronic versions and/or custom covers and content particular to your business, training goals, marketing focus, and branding interests For more information, please contact: U.S Corporate and Government Sales (800) 382-3419 corpsales@pearsontechgroup.com For sales outside the United States please contact: International Sales international@pearsoned.com Visit us on the Web: www.awprofessional.com Copyright © 2006 Pearson Education, Inc All rights reserved Printed in the United States of America This publication is protected by copyright, and permission must be obtained from the publisher prior to any prohibited reproduction, storage in a retrieval system, or transmission in any form or by any means, electronic, mechanical, photocopying, recording, or likewise For information regarding permissions, write to: Pearson Education, Inc Rights and Contracts Department One Lake Street Upper Saddle River, NJ 07458 Text printed in the United States on recycled paper at R.R Donnelley & Sons in Crawfordsville, IN First printing, March 2006 Library of Congress Cataloging-in-Publication Data Brown, Eric (Eric Lee), 1964 SQL server 2005 distilled / Eric Brown p cm ISBN 0-321-349792 (pbk : alk paper) 1 SQL server Client/server computing Databas Title QA76.9.C55B77 2006 005.2'768dc22 2005034772 Dedication This book is dedicated to Kim, Hannah, and Chloe Microsoft Windows Server System Series Books in the Microsoft Windows Server System Series are written and reviewed by the world's leading technical authorities on Microsoft Windows technologies, including principal members of Microsoft's Windows and Server Development Teams The goal of the series is to provide reliable information that enables administrators, developers, and IT professionals to architect, build, deploy, and manage solutions using the Microsoft Windows Server System The contents and code of each book are tested against, and comply with, commercially available code This series should be an invaluable resource for any IT professional or student working in today's Windows environment Titles in the Series Paul Bertucci, Microsoft SQL Server High Availability, 0-67232625-6 (Sams) Peter Blackburn and William R Vaughn, Hitchhiker's Guide to SQL Server 2000 Reporting Services, 0-321-26828-8 (AddisonWesley) William Boswell, Learning Exchange Server 2003, 0-321-22874X (Addison-Wesley) Roberta Bragg, Windows Server 2003 Security, 0-321-30501-9 (Addison-Wesley) Eric L Brown, SQL Server 2005 Distilled, 0-321-34979-2 (Addison-Wesley) Bill English, Olga Londer, Shawn Shell, Todd Bleeker, and Stephen Cawood, Microsoft Content Management Server 2002: A Complete Guide, 0-321-19444-6 (Addison-Wesley) Don Jones, Managing Windows® with VBScript and WMI, 0321-21334-3 (Addison-Wesley) Sakari Kouti and Mika Seitsonen, Inside Active Directory, Second Edition: A System Administrator's Guide1, 0-32122848-0 (Addison-Wesley) Jason Nadrowski and Stacy Draper, SharePoint 2003 Advanced Concepts, 0-321-33661-5 (Addison-Wesley) Shyam Pather, Microsoft SQL Server 2000 Notification Services, 0-672-32664-7 (Sams) Jeffrey R Shapiro and Marcin Policht, Building High Availability Windows Server™ 2003 Solutions, 0-321-22878-2 (Addison- Wesley) For more information please go to www.awprofessional.com/msserverseries Server Integration Services) ] SQL Server Management Objects [See SMO (SQL Server Management Objects) ] SQL Server Management Studio 2nd 3rd 4th connection dialog Create Database dialog creating tables customizing help nonmodal dialogs Object Explorer projects Query Editor SMO source control systems SQL Server Managerment Objects SQL Server Mobile Edition 2nd 3rd specifications SQL server native types SQL Server Profiler SQL Server Replication 2nd availability business intelligence/datawarehousing manageability mobility Oracle Publishing peer-to-peer replication performance performance and scalability programmability scalability web-based replication SQL Server Reporting Services [See Reporting Services ] SQL Server Security Configuration Manager tool SQL Server Standard Edition versus SQL Server Enterprise Edition SQL Server Surface Area Configuration tool SQL Server Workgroup Edition SQL Service Broker 2nd 3rd messaging in databases security SQL Server Express SQL Service Broker (SSB) 2nd SQL types SQL-99 isolation levels SQLCMD SQLMail SQLTypes mappings SQLXML SSAC (Server Surface Area Configuration) tools SSB (SQL Service Broker) 2nd SSCE (SQL Server Compact Edition) SSIS (SQL Server Integration Services) 2nd 3rd 4th architecture backward compatibility control flow data flow 2nd deploying packages error handling scaling, choosing between 32-bit and 64-bit hardware platforms security features database-level roles in SSIS encrypting SSIS packages package-level security Reporting Services securing operational environments signing packages with certificates SSIS clients SSIS Run-time SSIS Service SSL asymmetric keys SQL Server Encryption and symmetric keys status storage, Analysis Services stored procedures, Analysis Services string functions Subscriber class Subscriber Enumeration class Subscriber Management API SubscriberDevice class SubscriberDevice Management API SubscriberDeviceEnumeration class subscription management application, Notification Services subscriptions event subscriptions Notification Services scheduled subscriptions support for download-only articles support for partitioned articles Surface Area Configuration (SAC) tool surrogate characters suspended state symmetric keys synchronizing state synonyms 2nd system maintenance system tables and views in SQL Server 2005 Index [SYMBOL] [A] [B] [C] [D] [E] [F] [G] [H] [I] [K] [L] [M] [N] [O] [P] [Q] [R] [S] [T] [U] [V] [W] [X] table partitioning 2nd 3rd 4th VLDB table sample clause tables creating in SQL Server Management Studio system tables and views in SQL Server 2005 TCP/IP, SQL Server Express Terminate() text Time-bound tuning TimeZone class tools ETL SAC tool SQL Server Security Configuration Manager tool SSAC tools TOP TOP operator topologies, peer-to-peer replication torn page detection trace events traces, deadlock traces Transact-SQL APPLY operator assemblies database features to turn off DDL triggers DML DMVs extensions for queuing support indexed views LOB new analytic functions persisted computed columns PIVOT operator recursive queries security certificates encryption logins use of roles synonyms table partitioning table sample clause TOP UNPIVOT operator versus managed code XML XML Web Services transaction exception handling Transaction level transaction messaging, SQL Service Broker transaction replication transformations 2nd 3rd transport security SQL Service Broker triggers DDL triggers DML triggers versus event notifications Trustworthy Computing Initiative TRY/CATCH blocks tuning Database Tuning Advisor turning off database features, Transact-SQL Index [SYMBOL] [A] [B] [C] [D] [E] [F] [G] [H] [I] [K] [L] [M] [N] [O] [P] [Q] [R] [S] [T] [U] [V] [W] [X] UDAggs (user-defined aggregates) integrating NET Framework UDM (Unified Dimensional Model) 2nd Analysis Services 2nd measure groups perspectives dimensions perspectives UDTs (user-defined data types) integrating NET Framework Unicode Unified Dimensional Model [See UDM (Unified Dimensional Model) ] UNIQUE UNPIVOT 2nd UNSAFE untyped XML data types use of roles, Transact-SQL security user-defined aggregates (UDAggs) user-defined data types (UDTs) user-defined functions, integrating NET Framework user/schema separation Index [SYMBOL] [A] [B] [C] [D] [E] [F] [G] [H] [I] [K] [L] [M] [N] [O] [P] [Q] [R] [S] [T] [U] [V] [W] [X] VALUE index varbinary varchar and XML column comparisons versioning of BI for SQL Server 2005 vertical partitioning Very Large Database [See VLDBs (Very Large Databases) ] views indexed views, Transact-SQL versus queries, Full-Text Search Visual Basic.NET Express Visual C# Express Visual C++ Express Visual J# Express Visual Studio, integrating SQL Server Express Visual Web Developer VLDBs (Very Large Databases) backup and restore enhancements checksum integrity checks fast recovery full-text catalog inclusion mirrored backups online restore index partitioning maintaining table partitioning Index [SYMBOL] [A] [B] [C] [D] [E] [F] [G] [H] [I] [K] [L] [M] [N] [O] [P] [Q] [R] [S] [T] [U] [V] [W] [X] WAITFOR Web Service Description Languages (WSDLs) Web Services native XML Web Services web-based replication Windows Enterprise Data Center 2003 64-bit Edition Windows Installer Windows Management Instrumentation (WMI) Windows on Windows (WOW) 2nd Windows Script Host (WSH) witness wizards Backup Database Wizard Business Intelligence Wizard Cube Wizard Data Source View Wizard Database Mail Configuration Wizard Index tuning Wizard Intellicube Report Model Wizard Setup Wizard WMI (Windows Management Instrumentation) 2nd word breaking and justificiation, international features Workgroup WOW (Windows on Windows) 2nd WSDLs (Web Service Description Languages) XML WSH (Windows Script Host) Index [SYMBOL] [A] [B] [C] [D] [E] [F] [G] [H] [I] [K] [L] [M] [N] [O] [P] [Q] [R] [S] [T] [U] [V] [W] [X] XDR (XML-Data Reduced) XML (eXtensible Markup Language) 2nd 3rd as a datasource, transformations choice of XML technology DML FOR XML native XML Web Services OPENXML relational databases Transact-SQL XML Web Services WSDL XQuery XML columns and varchar comparisons XML data types 2nd constrained XML data types indexing XML data type columns untyped XML data types XML Query (XQuery) 2nd XML Query Language XML schemas XML view XML Web Service, Reporting Services XML Web Services 2nd Transact-SQL XML-Data Reduced (XDR) XML/A 2nd XQuery (XML Query Language) XSLT (Extensible Stylesheets Language Transformation) XSLT content formatter ... SQL Server 2000 32-bit (SP4) Yes Yes No No No SQL Server 2000 64-bit Itanium No No No No Yes SQL Server 2005 32-bit Yes Yes No No No SQL Server 2005 64-bit X64 No No Yes No No SQL Server 2005. .. William Boswell, Learning Exchange Server 2003, 0-321-22874X (Addison- Wesley) Roberta Bragg, Windows Server 2003 Security, 0-321-30501-9 (Addison- Wesley) Eric L Brown, SQL Server 2005 Distilled, 0-321-34979-2 (Addison- Wesley) ... Simple code examples demonstrating SQL Server 2005' s most significant new features SQL Server 2005 Distilled By Eric L Brown Publisher: Addison Wesley Professional Pub Date: March 20, 2006 Print ISBN- 10: 0-321-34979-2