Book description
This is the industry’s most comprehensive and useful guide to SQL Server 2008 and 2008 R2. It presents start-to-finish coverage of SQL Server’s core database server and management capabilities, plus complete introductions to Integration, Reporting, and Analysis Services, application development, and much more.
Four expert SQL Server administrators, developers, and consultants have packed this book with real-world information, tips, guidelines, and samples drawn from their own extensive experience creating and managing complex database solutions. Writing for intermediate-to-advanced-level SQL Server professionals, they focus on the product’s most complex and powerful capabilities, and its newest tools and features. For example, you’ll find invaluable information on administering SQL Server more efficiently, analyzing and optimizing queries, implementing data warehouses, ensuring high availability, and tuning performance.
The accompanying CD-ROM contains an extraordinary library of practical tools and information including sample databases and all code examples. Whether you’re responsible for SQL Server 2008 analysis, design, implementation, support, administration, or troubleshooting, no other book offers you this much value.
Understand the Microsoft SQL Server 2008 environment, R2’s newest features, and each edition’s capabilities
Manage SQL Server 2008 more effectively with SQL Server Management Studio, the SQLCMD command-line query tool, and Powershell
Efficiently manage security, users, backup/restore, replication, Database Mail, and database objects—from tables and indexes to stored procedures and triggers
Increase availability with clustering, database mirroring, and other features
Use new Policy-Based Management to centrally configure and operate SQL Server throughout the organization
Use SQL Server Profiler to capture queries and identify bottlenecks
Improve performance by optimizing queries, design more effective databases, and manage workloads with the new Resource Governor
Develop applications using SQL Server 2008’s enhancements to T-SQL and SQLCLR, .NET integration, LINQ to SQL, XML, and XQuery
Make the most of Analysis Services, Integration Services, and Reporting Services—especially Microsoft’s new R2 reporting improvements
Improve data security using Column-level and Transparent Data Encryption
CD-ROM includes:
15 additional chapters
Code samples, scripts, and databases utilized within the book
Free version of SQL Shot (performance & tuning software)
Table of contents
- Title Page
- Copyright Page
- Dedication
- Contents at a Glance
- Table of Contents
- About the Authors
- About the Contributing Author
- Acknowledgments
- We Want to Hear from You!
- Reader Services
- Introduction
-
Part I. Welcome to Microsoft SQL Server
- Chapter 1. SQL Server 2008 Overview
-
Chapter 2. What’s New in SQL Server 2008
-
New SQL Server 2008 Features
- New Storage Features
- New Data Types
- New Transact-SQL Constructs
- New Performance Features
- New Security Features
- New Database Administration Features
- New SQL Server Management Studio Features
- PowerShell Integration
- New Premium SQL Server Editions
- SQL Server Utility for Multiserver Management
- PowerPivot for Excel and SharePoint
- New Reporting Services Features
- SQL Server 2008 Enhancements
- Summary
-
New SQL Server 2008 Features
- Chapter 3. Examples of SQL Server Implementations
-
Part II. SQL Server Tools and Utilities
- Chapter 4. SQL Server Management Studio
- Chapter 5. SQL Server Command-Line Utilities
- Chapter 6. SQL Server Profiler
-
Part III. SQL Server Administration
- Chapter 7. SQL Server System and Database Administration
- Chapter 8. Installing SQL Server 2008
- Chapter 9. Upgrading to SQL Server 2008
- Chapter 10. Client Installation and Configuration
-
Chapter 11. Security and User Administration
- What’s New in Security and User Administration
- An Overview of SQL Server Security
- Authentication Methods
- Managing Principals
- Managing Securables
- Managing Permissions
- Managing SQL Server Logins
- Managing SQL Server Users
- Managing Database Roles
- Managing SQL Server Permissions
- The Execution Context
- Summary
- Chapter 12. Data Encryption
- Chapter 13. Security and Compliance
- Chapter 14. Database Backup and Restore
- Chapter 15. Database Mail
- Chapter 16. SQL Server Scheduling and Notification
-
Chapter 17. Administering SQL Server 2008 with PowerShell
- What’s New with PowerShell
- Overview of PowerShell
-
PowerShell Scripting Basics
- A Few Basic Cmdlets
- Creating a PowerShell Script
- Adding Comments
- Variables
- Escaping Characters
- Special Variable $_
- Joining Variables and Strings
- Passing Arguments
- Using Param
- Arrays
- Operators
- Conditional Statements
- Functions
- Looping Statements
- Filtering Cmdlets
- Formatting Cmdlets
- Dealing with CSV Files
- Dealing with Dates and Times
- -WhatIf/-Confirm Parameters
- PowerShell in SQL Server 2008
-
Step-By-Step Examples
- General Tasks
- Scheduling Scripts
- Common OS-Related Tasks
- SQL Server–Specific Tasks
- Using the Provider
- Creating a Database Table
- Performing a Database Backup
- Checking Server Settings
- Checking the Database Usage
- Getting Table Properties
- Cmdlet Example: Invoke-SqlCmd
- Cmdlet Example: Invoke-PolicyEvaluation
- Joining Columns
- Retrieving an Entry
- Summary
- Chapter 18. SQL Server High Availability
-
Chapter 19. Replication
- What’s New in Data Replication
- What Is Replication?
- The Publisher, Distributor, and Subscriber Magazine Metaphor
-
Replication Scenarios
- The Central Publisher Replication Model
- The Central Publisher with Remote Distributor Replication Model
- The Publishing Subscriber Replication Model
- The Central Subscriber Replication Model
- The Multiple Publishers with Multiple Subscribers Replication Model
- The Updating Subscribers Replication Model
- The Peer-to-Peer Replication Model
- Subscriptions
- Replication Agents
- Planning for SQL Server Data Replication
- SQL Server Replication Types
- Basing the Replication Design on User Requirements
- Setting Up Replication
- Scripting Replication
-
Monitoring Replication
- Replication Monitoring SQL Statements
- Monitoring Replication within SQL Server Management Studio
- Troubleshooting Replication Failures
- New and Improved Peer-to-Peer Replication
- The Performance Monitor
- Replication in Heterogeneous Environments
- Backup and Recovery in a Replication Configuration
- Some Thoughts on Performance
- Log Shipping
- Data Replication and Database Mirroring for Fault Tolerance and High Availability
- Summary
-
Chapter 20. Database Mirroring
- What’s New in Database Mirroring
- What Is Database Mirroring?
- Roles of the Database Mirroring Configuration
- Setting Up and Configuring Database Mirroring
- Testing Failover from the Principal to the Mirror
- Client Setup and Configuration for Database Mirroring
- Migrate to Database Mirroring 2008 as Fast as You Can
- Using Replication and Database Mirroring Together
- Using Database Snapshots from a Mirror for Reporting
- Summary
- Chapter 21. SQL Server Clustering
- Chapter 22. Administering Policy-Based Management
-
Part IV. Database Administration
- Chapter 23. Creating and Managing Databases
- Chapter 24. Creating and Managing Tables
-
Chapter 25. Creating and Managing Indexes
- What’s New in Creating and Managing Indexes
- Types of Indexes
- Clustered Indexes
- Nonclustered Indexes
- Note
- Creating Indexes
- Creating Indexes with T-SQL
- Tip
- Creating Indexes with SSMS
- Managing Indexes
- Managing Indexes with T-SQL
- Note
- Tip
- Tip
- Managing Indexes with SSMS
- Tip
- Dropping Indexes
- Note
- Online Indexing Operations
- Indexes on Views
- Summary
- Chapter 26. Implementing Data Integrity
- Chapter 27. Creating and Managing Views in SQL Server
-
Chapter 28. Creating and Managing Stored Procedures
- What’s New in Creating and Managing Stored Procedures
- Advantages of Stored Procedures
- Creating Stored Procedures
- Executing Stored Procedures
- Deferred Name Resolution
- Viewing Stored Procedures
- Modifying Stored Procedures
- Using Input Parameters
- Using Output Parameters
- Returning Procedure Status
- Debugging Stored Procedures Using SQL Server Management Studio
- Using System Stored Procedures
- Startup Procedures
- Summary
- Chapter 29. Creating and Managing User-Defined Functions
- Chapter 30. Creating and Managing Triggers
-
Chapter 31. Transaction Management and the Transaction Log
- What’s New in Transaction Management
- What Is a Transaction?
- How SQL Server Manages Transactions
- Defining Transactions
- Transactions and Batches
- Transactions and Stored Procedures
- Transactions and Triggers
- Transactions and Locking
- Coding Effective Transactions
- Transaction Logging and the Recovery Process
- Long-Running Transactions
- Bound Connections
- Distributed Transactions
- Summary
-
Chapter 32. Database Snapshots
- What’s New with Database Snapshots
- What Are Database Snapshots?
- Limitations and Restrictions of Database Snapshots
- Copy-on-Write Technology
- When to Use Database Snapshots
- Setup and Breakdown of a Database Snapshot
- Reverting to a Database Snapshot for Recovery
- Setting Up Snapshots Against a Database Mirror
- Database Snapshots Maintenance and Security Considerations
- Summary
- Chapter 33. Database Maintenance
-
Part V. SQL Server Performance and Optimization
-
Chapter 34. Data Structures, Indexes, and Performance
- What’s New for Data Structures, Indexes, and Performance
- Note
- Understanding Data Structures
- Database Files and Filegroups
- Database Pages
- Space Allocation Structures
- Data Compression
- Understanding Table Structures
-
Data Modification and Performance
- Inserting Data
- Deleting Rows
- Updating Rows
- The Statistics Histogram
- How the Statistics Histogram Is Used
- Index Densities
- Estimating Rows Using Index Statistics
- Generating and Maintaining Index and Column Statistics
- Setting the Fill Factor
- Reapplying the Fill Factor
- Disabling Indexes
- Managing Indexes with SSMS
- Clustered Index Indications
- Nonclustered Index Indications
- Index Covering
- Included Columns
- Wide Indexes Versus Multiple Indexes
- Creating and Using Filtered Indexes
- Creating and Using Filtered Statistics
- The Database Engine Tuning Advisor
- Missing Index Dynamic Management Objects
- Missing Index Feature Versus Database Engine Tuning Advisor
- Summary
-
Chapter 35. Understanding Query Optimization
- Note
- Note
- What’s New in Query Optimization
- What Is the Query Optimizer?
- Query Compilation and Optimization
- Query Analysis
- Join Selection
- Execution Plan Selection
- Query Plan Caching
- Other Query Processing Strategies
- Parallel Query Processing
- Common Query Optimization Problems
- Managing the Optimizer
- Summary
- Chapter 36. Query Analysis
-
Chapter 37. Locking and Performance
- What’s New in Locking and Performance
- The Need for Locking
- Transaction Isolation Levels in SQL Server
- The Lock Manager
- Monitoring Lock Activity in SQL Server
- SQL Server Lock Types
- SQL Server Lock Granularity
- Lock Compatibility
- Locking Contention and Deadlocks
- Table Hints for Locking
- Optimistic Locking
- Summary
- Chapter 38. Database Design and Performance
- Chapter 39. Monitoring SQL Server Performance
- Chapter 40. Managing Workloads with the Resource Governor
- Chapter 41. A Performance and Tuning Methodology
-
Chapter 34. Data Structures, Indexes, and Performance
-
Part VI. SQL Server Application Development
-
Chapter 42. What’s New for Transact-SQL in SQL Server 2008
- Note
- Note
- MERGE Statement
- Insert over DML
- GROUP BY Clause Enhancements
- Variable Assignment in DECLARE Statement
- Compound Assignment Operators
- Row Constructors
- New date and time Data Types and Functions
- Table-Valued Parameters
- Hierarchyid Data Type
- Using FILESTREAM Storage
- Sparse Columns
- Spatial Data Types
- Change Data Capture
- Change Tracking
- Summary
-
Chapter 43. Transact-SQL Programming Guidelines, Tips, and Tricks
- Note
- General T-SQL Coding Recommendations
- General T-SQL Performance Recommendations
- T-SQL Tips and Tricks
- In Case You Missed It: New Transact-SQL Features in SQL Server 2005
- The xml Data Type
- The max Specifier
- TOP Enhancements
- The OUTPUT Clause
- Common Table Expressions
- Ranking Functions
- PIVOT and UNPIVOT
- The APPLY Operator
- TRY...CATCH Logic for Error Handling
- The TABLESAMPLE Clause
- Summary
-
Chapter 44. Advanced Stored Procedure Programming and Optimization
- T-SQL Stored Procedure Coding Guidelines
- Using Cursors in Stored Procedures
- Nested Stored Procedures
- Using Temporary Tables in Stored Procedures
- Using Remote Stored Procedures
- Stored Procedure Performance
- Using Dynamic SQL in Stored Procedures
- Installing and Using .NET CLR Stored Procedures
- Using Extended Stored Procedures
- Summary
- Chapter 45. SQL Server and the .NET Framework
-
Chapter 46. SQLCLR: Developing SQL Server Objects in .NET
- What’s New for SQLCLR in SQL Server 2008
-
Developing Custom Managed Database Objects
- An Introduction to Custom Managed Database Objects
- Managed Object Permissions
- Developing Managed Objects with Visual Studio 2008
- Developing Managed Stored Procedures
- Developing Managed User-Defined Functions (UDFs)
- Developing Managed User-Defined Types (UDTs)
- Developing Managed User-Defined Aggregates (UDAs)
- Developing Managed Triggers
- Using Transactions
- Using the Related System Catalogs
- Summary
- Chapter 47. Using XML in SQL Server 2008
- Chapter 48. SQL Server Web Services
- Chapter 49. SQL Server Service Broker
- Chapter 50. SQL Server Full-Text Search
-
Chapter 42. What’s New for Transact-SQL in SQL Server 2008
-
Part VII. SQL Server Business Intelligence Features
- Chapter 51. SQL Server 2008 Analysis Services
-
Chapter 52. SQL Server Integration Services
- What’s New with SSIS
- SSIS Basics
- SSIS Architecture and Concepts
- SSIS Tools and Utilities
- A Data Transformation Requirement
- Running the SSIS Wizard
- The SSIS Designer
- The Package Execution Utility
- Connection Projects in Visual Studio
- Change Data Capture Addition with R2
- Using bcp
- Logged and Nonlogged Operations
- Summary
-
Chapter 53. SQL Server 2008 Reporting Services
- What’s New in SSRS 2008
- Reporting Services Architecture
- Installing and Configuring SSRS
-
Developing Reports
- Tools of the Trade
- Report Basics
- Overview of the Report Development Process
- Data Planning and Preparation
- Using Shared Data Sources
- Using Datasets
- Using Shared Datasets
- Developing Reports Using BIDS
- Working with the Tablix
- Understanding Expressions
- Report Design Fundamentals
- Using the Data Visualization Controls: Sparkline, Indicator, and Data Bar
- Designing Reports Using Report Builder
- Report Builder and Report Model Security
- Enabling Report Builder
- Management and Security
- Performance and Monitoring
- Summary
-
Part VIII. Bonus Chapters
-
Chapter 54. Managing Linked and Remote Servers
- What’s New in Managing Linked and Remote Servers
- Managing Remote Servers
- Linked Servers
- Adding, Dropping, and Configuring Linked Servers
- Mapping Local Logins to Logins on Linked Servers
- Obtaining General Information About Linked Servers
- Executing a Stored Procedure via a Linked Server
- Setting Up Linked Servers Using SQL Server Management Studio
- Summary
-
Chapter 55. Configuring, Tuning, and Optimizing SQL Server Options
- What’s New in Configuring, Tuning, and Optimizing SQL Server Options
- SQL Server Instance Architecture
- Configuration Options
- Fixing an Incorrect Option Setting
- Setting Configuration Options with SSMS
- Obsolete Configuration Options
-
Configuration Options and Performance
- access check cache bucket count
- access check cache quota
- ad hoc distributed queries
- affinity I/O mask
- affinity mask
- Agent XP
- awe enabled
- backup compression default
- blocked process threshold
- c2 audit mode
- clr enabled
- common criteria compliance enabled
- cost threshold for parallelism
- cross db ownership chaining
- cursor threshold
- default full-text language
- default language
- EKM provider enabled
- filestream_access_level
- fill factor
- index create memory
- in-doubt xact resolution
- lightweight pooling
- locks
- max degree of parallelism
- max server memory and min server memory
- max text repl size
- max worker threads
- min memory per query
- nested triggers
- network packet size
- optimize for ad hoc workloads
- PH_timeout
- priority boost
- query governor cost limit
- query wait
- recovery interval
- remote admin connections
- remote login timeout
- remote proc trans
- remote query timeout
- scan for startup procs
- show advanced options
- user connections
- user options
- XP-Related Configuration Options
- Database Engine Tuning Advisor
- Data Collection Sets
- Summary
- Chapter 56. SQL Server Disaster Recovery Planning
-
Chapter 54. Managing Linked and Remote Servers
- Footnotes
- Index
Product information
- Title: Microsoft® SQL Server 2008 R2 Unleashed
- Author(s):
- Release date: September 2010
- Publisher(s): Sams
- ISBN: 9780768696585
You might also like
book
Microsoft® SQL Server® 2008 Bible
Harness the power of SQL Server, Microsoft’s high-performance database and data analysis software package, by accesing …
book
SQL Server 2005 Practical Troubleshooting: The Database Engine
Never-Before-Published Insiders’ Information for Troubleshooting SQL Server 2005. This is the definitive guide to troubleshooting the …
book
Microsoft® SQL Server® 2008 Internals
Delve inside the core SQL Server engine—and put that knowledge to work—with guidance from a team …
book
Microsoft® SQL Server™ 2000 Analysis Services Step by Step
This title shows how to build applications that take advantage of the powerful data-analysis services in …