Call now: (800) 766-1884  


 Home


SQL Server Tips
SQL Server Training

SQL Server Consulting
SQL Server Support

Articles
Services
SQL Server Scripts
Scripts Menu



 

 

 

 
 

SQL Server buffer page life script


SQL Server Scripts by Burleson Consulting
 


***************************************
-- page_life.sql
***************************************
If the DBA is seeing low readings for the buffer cache hit ratio, the Page Life Expectancy statistic should be checked. This statistic indicates the length of time SQL Server estimates a page will remain in the buffer cache.

Obviously, pages served from memory result in much
shorter response times than pages that must be read from disk and then
into the cache. So, it is wise for often used data to be pinned in the
buffer cache. The page_life query easily provides the DBA with this measure:

select
cntr_value
from
master..sysperfinfo
See code depot for full script
where
object_name = 'SQLServer:Buffer Manager' and
 counter_name = 'Page life expectancy'




 

 

 

image


 

 


 

 

 

 

Note: The pages on this site were created as a support and training reference for use by our staff of DBA consultants.  If you find it confusing, please exit this page.

Errata?  SQL Server technology is changing and we strive to update our SQL Server support information.  If you find an error or have a suggestion for improving our content, we would appreciate your feedback.  Just  e-mail:and include the URL for the page.
 


Burleson Consulting
SQL Server database support

 

Copyright © 1996 -  2006 by Burleson Enterprises, Inc. All rights reserved.

Hit Counter