You are on page 1of 786

y.

The plan cache pressure limit would be 75 percent of 8 GB plus 50 percent of the target memory over 8 GB (or 50 percent of 20 GB), which is 6 GB + 10 GB, or 16 GB.

t is that you can customize it. For example, it would be relatively straightforward to do one more OUTER APPLY, to join this view with the sys.dm_exec_query_plan function, to get the XML plan for each of the plans in cache.
USE master GO CREATE VIEW sp_cacheobjects (bucketid, cacheobjtype, objtype, objid, dbid, dbidexec, uid,

y ... :y~ .......... ... :_'N.'.'~... W..-,'_'_'....:.; "'. '.', ..'

.'.'

em.

Microsoft SQL Server 2008 Internals


4P 4P

The definitive deep-dive on core engine features and how they work
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 changesand 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

RESOURCE ROADMAP
Developer Step by Step Hands-on tutorial covering fundamental techniques and features Practice files on CO Prepares and informs new-to-topic programmers

Developer Reference Expert coverage of core topics Extensive, pragmatic coding examples Builds professional-level proficiency with a Microsoft technology Focused Topics Deep coverage of advanced techniques and capabilities t~nsive. adaptable coding examples romotes full mastery of a Microsoft technology

Get code samples and bonus chapters on the Web


See the Introduction for details

See inside cover


microsoft.comjmspress
o o ";'

co

'" ..... '" x

U.S.A. $59.99
[Recommended1

You might also like