Book description
Dive deep inside the architecture of SQL Server 2012
Explore the core engine of Microsoft SQL Server 2012—and put that practical knowledge to work. Led by a team of SQL Server experts, you’ll learn the skills you need to exploit key architectural features. Go behind the scenes to understand internal operations for creating, expanding, shrinking, and moving databases—whether you’re a database developer, architect, or administrator.
Discover how to:
Dig into SQL Server 2012 architecture and configuration
Use the right recovery model and control transaction logging
Reduce query execution time through proper index design
Track events, from triggers to the Extended Event Engine
Examine internal structures with database console commands
Transcend row-size limitations with special storage capabilities
Choose the right transaction isolation level and concurrency model
Take control over query plan caching and reuse
Table of contents
- Microsoft SQL Server 2012 Internals
- Introduction
- 1. SQL Server 2012 architecture and configuration
-
2. The SQLOS
- NUMA architecture
- The scheduler
- Memory
- SQL Server Resource Governor
- Extended Events
- Conclusion
- 3. Databases and database files
- 4. Special databases
- 5. Logging and recovery
-
6. Table storage
- Table creation
- IDENTITY property
- Sequence object
- Internal storage
- Constraints
- Altering a table
- Heap modification internals
- Conclusion
-
7. Indexes: internals and management
- Overview
- SQL Server B-tree indexes
- Tools for analyzing indexes
- Understanding B-tree index structures
- Index creation options
- Physical index structures for B-trees
- Indexes on computed columns and indexed views
- Data modification internals
- Managing B-tree index structures
- Columnstore indexes
- Conclusion
-
8. Special storage
- Large object storage
- FILESTREAM and FileTable data
- Sparse columns
- Data compression
- Table and index partitioning
- Conclusion
-
9. Special indexes
- Special indexes vs. ordinary indexes
- XML indexes
-
Spatial indexes
- Purpose of spatial indexes
- Composition of the spatial index
- How a spatial query uses a spatial index
- How to ensure that your spatial index is being used
- Spatial query plans and spatial indexes
- Nearest neighbor optimization in SQL Server 2012
- Spatial index diagnostic stored procedures
- Diagnostics with the SQL Server 2012 spatial functions
-
Full-text indexes
- Internal tables created by the full-text index
- Full-text index metadata views
- Full-text index creation
- Maintenance of a full-text index
- Full-text status metadata, configuration, and diagnostic information
- How a full-text index is used in a query
- A full-text query plan
- Extended event information for full-text queries
- Semantic indexes
- Conclusion
-
10. Query execution
- Introducing query processing and execution
- Reading query plans
-
Analyzing plans
- Scans and seeks
- Seekable predicates and covered columns
- Bookmark lookup
- Joins
- Aggregations
- Unions
- Advanced index operations
- Subqueries
-
Parallelism
- Degree of parallelism (DOP)
- Parallelism operator (also known as exchange)
- Parallel scan
- Load balancing
- Parallel nested loops join
- Round-robin exchange
- Parallel nested loops join performance
- Inner-side parallel execution
- Parallel merge join
- Parallel hash join
- Hash partitioning
- Broadcast partitioning
- Bitmap filtering
- Inserts, updates, and deletes
- Understanding data warehouses
- Using columnstore indexes and batch processing
- Conclusion
- 11. The Query Optimizer
-
12. Plan caching and recompilation
- The plan cache
- Caching mechanisms
- Plan cache internals
- Objects in plan cache: the big picture
- Optimization hints and plan guides
- Conclusion
-
13. Transactions and concurrency
- Concurrency models
- Transaction processing
- Locking
- Row versioning
- Controlling locking
- Conclusion
-
14. DBCC internals
- Shrinking files and databases
-
Consistency checking
- Getting a consistent view of the database
- Processing the database efficiently
- Performing primitive system catalog consistency checks
- Performing allocation consistency checks
- Performing per-table logical consistency checks
- Processing columns
- Performing cross-table consistency checks
- Understanding DBCC CHECKDB output
- Reviewing DBCC CHECKDB options
- Performing database repairs
- Using consistency-checking commands other than DBCC CHECKDB
- Conclusion
- A. About the authors
- Index
- About the Authors
- Copyright
Product information
- Title: Microsoft SQL Server 2012 Internals
- Author(s):
- Release date: November 2013
- Publisher(s): Microsoft Press
- ISBN: 9780735670174
You might also like
book
Microsoft SQL Server 2012 Bible
Harness the powerful new SQL Server 2012 Microsoft SQL Server 2012 is the most significant update …
book
Microsoft SQL Server 2014 Unleashed
The industry’s most complete, useful, and up-to-date guide to SQL Server 2014. You’ll find start-to-finish coverage …
book
SQL Server 2019 Administration Inside Out
Conquer SQL Server 2019 administration–from the inside out Dive into SQL Server 2019 administration–and really put …
book
Dynamic SQL: Applications, Performance, and Security in Microsoft SQL Server
Take a deep dive into the many uses of dynamic SQL in Microsoft SQL Server. This …