Book description
Delve inside the core SQL Server engine—and put that
knowledge to work—with guidance from a team of well-known
internals experts. Whether database developer, architect, or
administrator, you’ll gain the deep knowledge you need to
exploit key architectural changes—and capture the
product’s full potential. Discover how SQL Server works
behind the scenes, including:
What happens internally when SQL Server builds, expands, shrinks, and moves databases
How to use event tracking—from triggers to the Extended Events Engine
Why the right indexes can drastically reduce your query execution time
How to transcend normal row-size limits with new storage capabilities
How the Query Optimizer operates
Multiple techniques for troubleshooting problematic query plans
When to force SQL Server to reuse a cached query plan—or create a new one
What SQL Server checks internally when running DBCC
How to choose among five isolation levels and two concurrency models when working with multiple concurrent users
Table of contents
- Microsoft® SQL Server® 2008 Internals
- Foreword
- Introduction
-
1. SQL Server 2008 Architecture and Configuration
- SQL Server Editions
- SQL Server Metadata
- Components of the SQL Server Engine
- The SQLOS
- The Scheduler
- Memory
- SQL Server Resource Governor
- SQL Server 2008 Configuration
- SQL Server System Configuration
- SQL Server Configuration Settings
- Final Words
-
2. Change Tracking, Tracing, and Extended Events
- The Basics: Triggers and Event Notifications
- Change Tracking
- Tracing and Profiling
- Extended Events
- Summary
-
3. Databases and Database Files
- System Databases
- Sample Databases
- Database Files
- Creating a Database
- Expanding or Shrinking a Database
- Using Database Filegroups
- Altering a Database
- Databases Under the Hood
- Setting Database Options
- Database Snapshots
- The tempdb Database
- Database Security
- Moving or Copying a Database
- Compatibility Levels
- Summary
- 4. Logging and Recovery
-
5. Tables
-
Creating Tables
- Naming Tables and Columns
- Reserved Keywords
- Delimited Identifiers
- Naming Conventions
- Data Types
- Much Ado About NULL
- User-Defined Data Types
- IDENTITY Property
- Internal Storage
- Constraints
- Altering a Table
- Heap Modification Internals
- Summary
-
Creating Tables
-
6. Indexes: Internals and Management
- Overview
- Tools for Analyzing Indexes
- Understanding Index Structures
- Index Creation Options
- Physical Index Structures
- Special Index Structures
- Data Modification Internals
- Managing Index Structures
- Summary
-
7. Special Storage
- Large Object Storage
- Filestream Data
- Sparse Columns
- Data Compression
- Table and Index Partitioning
- Summary
- 8. The Query Optimizer
-
9. Plan Caching and Recompilation
- The Plan Cache
- Caching Mechanisms
-
Plan Cache Internals
- Cache Stores
- Compiled Plans
- Execution Contexts
- Plan Cache Metadata
- Handles
- sys.dm_exec_sql_text
- sys.dm_exec_query_plan
- sys.dm_exec_text_query_plan
- sys.dm_exec_cached_plans
- sys.dm_exec_cached_plan_dependent_objects
- sys.dm_exec_requests
- sys.dm_exec_query_stats
- Cache Size Management
- Costing of Cache Entries
- Objects in Plan Cache: The Big Picture
- Multiple Plans in Cache
- When to Use Stored Procedures and Other Caching Mechanisms
- Troubleshooting Plan Cache Issues
- Summary
-
10. Transactions and Concurrency
- Concurrency Models
- Transaction Processing
- Locking
- Lock Compatibility
- Internal Locking Architecture
- Row-Level Locking vs. Page-Level Locking
- Row Versioning
- Controlling Locking
- Summary
-
11. DBCC Internals
- Getting a Consistent View of the Database
- Processing the Database Efficiently
- Primitive System Catalog Consistency Checks
- Allocation Consistency Checks
- Per-Table Logical Consistency Checks
- Cross-Table Consistency Checks
- DBCC CHECKDB Output
- DBCC CHECKDB Options
- Database Repairs
- Consistency-Checking Commands Other Than DBCC CHECKDB
- Summary
- About the Authors
- Index
- About the Authors
- Copyright
Product information
- Title: Microsoft® SQL Server® 2008 Internals
- Author(s):
- Release date: March 2009
- Publisher(s): Microsoft Press
- ISBN: 9780735634787
You might also like
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
Professional Microsoft® SQL Server® 2008 Programming
Master the increasingly complex feature set of the latest release of Microsoft SQL Server with the …
book
Inside Microsoft® SQL Server™ 2005, Fourth Edition
This practical, hands-on book offers deep, thorough coverage of the internals of architecture and resource management …
book
Professional Microsoft® SQL Server® 2008 Administration
SQL Server 2008 represents a sizable jump forward in scalability, performance, and usability for the DBA, …