 




<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>SQL Server with Mr. Denny &#187; Cache</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/sql-server/tag/cache/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/sql-server</link>
	<description></description>
	<lastBuildDate>Fri, 17 May 2013 17:04:01 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Always set the SEQUENCE cache size</title>
		<link>http://itknowledgeexchange.techtarget.com/sql-server/always-set-the-sequence-cache-size/</link>
		<comments>http://itknowledgeexchange.techtarget.com/sql-server/always-set-the-sequence-cache-size/#comments</comments>
		<pubDate>Thu, 24 Nov 2011 14:00:55 +0000</pubDate>
		<dc:creator>Denny Cherry</dc:creator>
				<category><![CDATA[Cache]]></category>
		<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/sql-server/?p=1807</guid>
		<description><![CDATA[One of the really cool features of the new SEQUENCES which were introduced in SQL Server 2012 is that you can specify the size of the cache used for each sequence.  However Microsoft is recommending that when creating sequences you should always specify the cache size of the sequence.  This is because Microsoft has stated [...]]]></description>
				<content:encoded><![CDATA[<p>One of the really cool features of the new SEQUENCES which were introduced in SQL Server 2012 is that you can specify the size of the cache used for each sequence.  However Microsoft is recommending that when creating sequences you should always specify the cache size of the sequence.  This is because Microsoft has stated that they can and may change the default cache size at their whim between builds of SQL Server 2012 and in the future.</p>
<p>Because of this you should always specify the size of the cache so that you get consistent results from deployment to deployment, especially if you work for a software distributor (ISV, Consulting company, etc.).</p>
<p>Denny</p>
<p style="text-align: center"><a href="http://sqlexcursions.com/napa-2011-sign-up"><img class="aligncenter size-full wp-image-1819" src="http://cdn.ttgtmedia.com/ITKE/uploads/blogs.dir/20/files/2011/10/2012-napa-banner.jpg" alt="" width="500" height="61" /></a></p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/sql-server/always-set-the-sequence-cache-size/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How much cache to allocate for servers that host 500gb databases?</title>
		<link>http://itknowledgeexchange.techtarget.com/sql-server/how-much-cache-to-allocate-for-servers-that-host-500gb-databases/</link>
		<comments>http://itknowledgeexchange.techtarget.com/sql-server/how-much-cache-to-allocate-for-servers-that-host-500gb-databases/#comments</comments>
		<pubDate>Mon, 17 Jan 2011 14:00:00 +0000</pubDate>
		<dc:creator>Denny Cherry</dc:creator>
				<category><![CDATA[Cache]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Storage]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/sql-server/how-much-cache-to-allocate-for-servers-that-host-500gb-databases/</guid>
		<description><![CDATA[The short answer is as much as possible. The more exact answer is you typically can’t allocate cache to a specific LUN.  You can usually carve up the total amount of cache into read and write cache.  You want as much write cache as possible so that the database writes directly to the disk as [...]]]></description>
				<content:encoded><![CDATA[<p>The short answer is as much as possible.</p>
<p>The more exact answer is you typically can’t allocate cache to a specific LUN.  You can usually carve up the total amount of cache into read and write cache.  You want as much write cache as possible so that the database writes directly to the disk as little as possible.</p>
<p>There is no number that I can give saying that you need X amount of write cache for a 500 Gig database, because it doesn’t depend on the database size.  It depends on the amount of data change per minute, how fast the data can be destaged from the write cache to the disks, and how much load is being placed on the disk for reading data.</p>
<p>Denny</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/sql-server/how-much-cache-to-allocate-for-servers-that-host-500gb-databases/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What should be done for a Transaction log drive (array) to make sure the log records are ON the disk, even if the power fails?</title>
		<link>http://itknowledgeexchange.techtarget.com/sql-server/what-should-be-done-for-a-transaction-log-drive-array-to-make-sure-the-log-records-are-on-the-disk-even-if-the-power-fails/</link>
		<comments>http://itknowledgeexchange.techtarget.com/sql-server/what-should-be-done-for-a-transaction-log-drive-array-to-make-sure-the-log-records-are-on-the-disk-even-if-the-power-fails/#comments</comments>
		<pubDate>Mon, 22 Nov 2010 11:00:10 +0000</pubDate>
		<dc:creator>Denny Cherry</dc:creator>
				<category><![CDATA[Cache]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Storage]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/sql-server/what-should-be-done-for-a-transaction-log-drive-array-to-make-sure-the-log-records-are-on-the-disk-even-if-the-power-fails/</guid>
		<description><![CDATA[This is a great question that I got a while back during a web cast that I did during the 24 Hours of PASS.  Most storage arrays, at least the better quality ones, have a battery within them which will keep a portion of the array online in the event of a power outage.  While [...]]]></description>
				<content:encoded><![CDATA[<p>This is a great question that I got a while back during a web cast that I did during the 24 Hours of PASS.  Most storage arrays, at least the better quality ones, have a battery within them which will keep a portion of the array online in the event of a power outage.  While the array won&#8217;t be available for use, this will give the array enough time to safely take its write cache from memory and write it down to the disk, then gracefully shutdown.</p>
<p>In the case of the transaction log, every write into the log is put down to disk immediately, and then written into the database file.  SQL tells Windows to do the write, and Windows tells the disk to do the write.  When the write is written to the write cache the disk tells Windows that the write has been completed, and Windows passes that information to SQL which tells SQL that the write to the log is done, and that it can now write to the database files as well.  If the power fails in the middle of this, after the transaction has been committed to the log, but before it has been committed to the database the data still has been written to the disk.  When the array sees that the power has gone out it&#8217;ll write the write cache to the disk, then power down.</p>
<p>When the power comes back up the array will load up the write cache back into memory, and flush the write cache down to where it needs to be written (in the similar way that SQL does a roll forward when it restarts).  Once the writes have been completed the array will allow the hosts (the servers) to see the LUNs and the SQL Server can then fire up and do its normal roll back and roll forward of the data within the transaction log.</p>
<p>Hopefully this helps fix some confusion.</p>
<p>Denny</p>
<p>P.S. Yes I am well aware that I have greatly over simplified the process of how SQL writes to the log and the database, but that isn&#8217;t the point of the article.  I&#8217;m sure that Paul has some great articles on the internals of how this works over on his blog.</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/sql-server/what-should-be-done-for-a-transaction-log-drive-array-to-make-sure-the-log-records-are-on-the-disk-even-if-the-power-fails/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Handy Query to look at amount of data in Buffer Cache</title>
		<link>http://itknowledgeexchange.techtarget.com/sql-server/handy-query-to-look-at-amount-of-data-in-buffer-cache/</link>
		<comments>http://itknowledgeexchange.techtarget.com/sql-server/handy-query-to-look-at-amount-of-data-in-buffer-cache/#comments</comments>
		<pubDate>Thu, 16 Oct 2008 11:00:04 +0000</pubDate>
		<dc:creator>Denny Cherry</dc:creator>
				<category><![CDATA[Cache]]></category>
		<category><![CDATA[SQL Server 2005]]></category>
		<category><![CDATA[SQL Server 2008]]></category>
		<category><![CDATA[sys.allocation_units]]></category>
		<category><![CDATA[sys.dm_os_buffer_descriptors]]></category>
		<category><![CDATA[sys.partitions]]></category>
		<category><![CDATA[sys.tables]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/sql-server/handy-query-to-look-at-amount-of-data-in-buffer-cache/</guid>
		<description><![CDATA[Here&#8217;s a handy query which I&#8217;ve written which I&#8217;ve used to see how much of each table is loaded into the SQL Server Buffer Cache.  It shows you how much data is in memory, how much space is used on disk, and the percentage of data in memory compared to the amount of data on [...]]]></description>
				<content:encoded><![CDATA[<p>Here&#8217;s a handy query which I&#8217;ve written which I&#8217;ve used to see how much of each table is loaded into the SQL Server Buffer Cache.  It shows you how much data is in memory, how much space is used on disk, and the percentage of data in memory compared to the amount of data on disk.</p>
<p><code>SELECT sys.tables.name TableName,<br />
 sum(a.page_id)*8 AS MemorySpaceKB,<br />
 SUM(sys.allocation_units.data_pages)*8 AS StorageSpaceKB,<br />
 CASE WHEN SUM(sys.allocation_units.data_pages) &lt;&gt; 0 THEN SUM(a.page_id)/CAST(SUM(sys.allocation_units.data_pages) AS NUMERIC(18,2)) END AS 'Percentage Of Object In Memory'<br />
FROM (SELECT database_id, allocation_unit_id, COUNT(page_id) page_id FROM sys.dm_os_buffer_descriptors GROUP BY database_id, allocation_unit_id) a<br />
JOIN sys.allocation_units ON a.allocation_unit_id = sys.allocation_units.allocation_unit_id<br />
JOIN sys.partitions ON (sys.allocation_units.type IN (1,3)<br />
  AND sys.allocation_units.container_id = sys.partitions.hobt_id)<br />
 OR (sys.allocation_units.type = 2 AND sys.allocation_units.container_id = sys.partitions.partition_id)<br />
JOIN sys.tables ON sys.partitions.object_id = sys.tables.object_id<br />
 AND sys.tables.is_ms_shipped = 0<br />
WHERE a.database_id = DB_ID()<br />
GROUP BY sys.tables.name</code></p>
<p>When you run this code, some of the smaller objects will show more pages in memory than on disk.  It appears that this is normal.  My guess is that SQL Server is preallocating data pages so that if data is added to these pages there is space allocated to them already in order to save time when adding data to the table.</p>
<p> I&#8217;ve removed the system objects from this query, as you can&#8217;t do anything to optimize them.</p>
<p>Denny</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/sql-server/handy-query-to-look-at-amount-of-data-in-buffer-cache/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Article: SQL Server memory configurations for procedure cache and buffer cache</title>
		<link>http://itknowledgeexchange.techtarget.com/sql-server/article-sql-server-memory-configurations-for-procedure-cache-and-buffer-cache/</link>
		<comments>http://itknowledgeexchange.techtarget.com/sql-server/article-sql-server-memory-configurations-for-procedure-cache-and-buffer-cache/#comments</comments>
		<pubDate>Tue, 10 Jun 2008 18:39:06 +0000</pubDate>
		<dc:creator>Denny Cherry</dc:creator>
				<category><![CDATA[Article]]></category>
		<category><![CDATA[Cache]]></category>
		<category><![CDATA[SQL Server 2000]]></category>
		<category><![CDATA[SQL Server 2005]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/sql-server/article-sql-server-memory-configurations-for-procedure-cache-and-buffer-cache/</guid>
		<description><![CDATA[To determine how much memory your SQL Server database uses for buffer cache and procedure cache, factor in the SQL version you're using, whether it's x86, x64 or Itanium and the amount of memory allocated to the SQL Server instance. I talk about how the system configures memory and how it allocates the amount of buffer and procedure cache that's available. ]]></description>
				<content:encoded><![CDATA[<p>I&#8217;ve just published another tip over on <a target="_blank" href="http://www.SearchSQLServer.com" title="SearchSQLServer.com">SearchSQLServer.com</a>.  This one is titled <a target="_blank" href="http://searchsqlserver.techtarget.com/tip/0,289483,sid87_gci1316780,00.html" title="The Tip">SQL Server memory configurations for procedure cache and buffer cache</a>.</p>
<p>To determine how much memory your SQL Server database uses for buffer cache and procedure cache, factor in the SQL version you&#8217;re using, whether it&#8217;s x86, x64 or Itanium and the amount of memory allocated to the SQL Server instance. I talk about how the system configures memory and how it allocates the amount of buffer and procedure cache that&#8217;s available.Denny</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/sql-server/article-sql-server-memory-configurations-for-procedure-cache-and-buffer-cache/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>EMC World 2008 Day 3</title>
		<link>http://itknowledgeexchange.techtarget.com/sql-server/emc-world-2008-day-3/</link>
		<comments>http://itknowledgeexchange.techtarget.com/sql-server/emc-world-2008-day-3/#comments</comments>
		<pubDate>Thu, 22 May 2008 15:37:23 +0000</pubDate>
		<dc:creator>Denny Cherry</dc:creator>
				<category><![CDATA[Billy Crystal]]></category>
		<category><![CDATA[Cache]]></category>
		<category><![CDATA[CLARiiON]]></category>
		<category><![CDATA[EMC]]></category>
		<category><![CDATA[EMC World 2008]]></category>
		<category><![CDATA[Encryption]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/sql-server/emc-world-2008-day-3/</guid>
		<description><![CDATA[Wednesday at EMC World was a session packed day to be sure. I started my morning with CLARiiON Rebuild Settings and Data which was an in depth look at how exactly the CLARiiON systems handle rebuilds, and how long various rebuilds take.  In addition we went into detail as to how the CLARiiON will not [...]]]></description>
				<content:encoded><![CDATA[<p>Wednesday at EMC World was a session packed day to be sure.</p>
<p>I started my morning with CLARiiON Rebuild Settings and Data which was an in depth look at how exactly the CLARiiON systems handle rebuilds, and how long various rebuilds take.  In addition we went into detail as to how the CLARiiON will not see that a disk is going to fail, and instead of waiting for it to fail and then having to rebuild it will actually copy the data from the disk ahead of time to a hot-spare then mark the disk as failed so that it can be replaced before the disk actually fails there by providing you with no point in time where your data is unprotected.</p>
<p> Another session went through the changes to the EMC PowerPath product and all the new features they are building into PowerPath such as the encryption of data when it leaves the server on its way to the disk.</p>
<p>Another session went through some tuning tips an tricks for getting the best performance from the EMC CLARiiON product.  These include the strip size, cache settings at both the LUN and SP level. </p>
<p>The night ended with the Billy Crystal performance.  I figured that the show would be funny.  I was wrong, it was hilarious.  Like everyone else I&#8217;ve seen Billy Crystal on TV and in Movies and thought he was funny, but in person he was probably the best comedy performance that I had ever seen.</p>
<p>Denny</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/sql-server/emc-world-2008-day-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Checking the cached execution plans</title>
		<link>http://itknowledgeexchange.techtarget.com/sql-server/checking-the-cached-execution-plans/</link>
		<comments>http://itknowledgeexchange.techtarget.com/sql-server/checking-the-cached-execution-plans/#comments</comments>
		<pubDate>Thu, 01 May 2008 09:00:53 +0000</pubDate>
		<dc:creator>Denny Cherry</dc:creator>
				<category><![CDATA[Cache]]></category>
		<category><![CDATA[Execution Plan]]></category>
		<category><![CDATA[Query tuning]]></category>
		<category><![CDATA[SQL Server 2005]]></category>
		<category><![CDATA[sys.dm_exec_cached_plans]]></category>
		<category><![CDATA[sys.dm_exec_plan_attributes]]></category>
		<category><![CDATA[sys.dm_exec_query_plan]]></category>
		<category><![CDATA[sys.dm_exec_requests]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/sql-server/checking-the-cached-execution-plans/</guid>
		<description><![CDATA[We are going to take a look into sys.dm_exec_cached_plans, sys.dm_exec_requests, sys.dm_exec_query_plan, and sys.dm_exec_plan_attributes.]]></description>
				<content:encoded><![CDATA[<p>As we all know SQL Server, will for good or bad, cache execution plans.  Up until now it&#8217;s been very tough to see the cached execution plans.  You pretty much had to grab the query or procedure (with the parameters) and run it with Query Analyzer and have it return the execution plan.  The only other option was to use SQL Profiler to capture the query along with the execution plan which it used.</p>
<p> Starting in SQL Server 2005 you now have the ability to query the system catalog and see what query plans are stored in the cache, as well as the queries which trigger that plan to be used, as well as how many times that cached plan has been used.</p>
<p>The first DMV to look at is sys.dm_exec_cached_plans.  This DMV gives you the size of the plan, the handle of the plan (which is binary), and the number of times the plan has been used.</p>
<p>The next DMV to look at is sys.dm_exec_requests.  This DMV gives you the currently running processes, wait information, all the session settings for the processes, etc.  It also includes the handle for all the plans which are currently being run.  If you join this sys.dm_exec_requests to sys.dm_exec_cached_plans you can see exactly which processes are using which plans.  Because this shows you the spid (the session_id column) and the plan_handle you can see what users are running which commands.</p>
<p>The next object is a system table function called sys.dm_exec_query_plan.  This function accepts a single input parameter of a plan handle.  There are several columns in the output, the most important of which is the query_plan.  This is the actual xml plan which is stored in the SQL Server.</p>
<p>The last object we&#8217;ll be looking at is the sys.dm_exec_plan_attributes table function.  This function also accepts a single input parameter of a plan handle.  This function returns the various session settings which were in place when the plan was created.  This is important information to have when working with query plans, as changing a single ANSI connection setting will force SQL to create a new execution plan.</p>
<p>Don&#8217;t forget how to <a target="_blank" href="http://itknowledgeexchange.techtarget.com/sql-server/easy-way-to-read-xml-execution-plans/" title="Easy Way to Read XML Execution Plans">view the XML execution plan in the UI</a>.</p>
<p>Denny</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/sql-server/checking-the-cached-execution-plans/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New Article: Configuring SQL Server memory settings</title>
		<link>http://itknowledgeexchange.techtarget.com/sql-server/new-article-configuring-sql-server-memory-settings/</link>
		<comments>http://itknowledgeexchange.techtarget.com/sql-server/new-article-configuring-sql-server-memory-settings/#comments</comments>
		<pubDate>Wed, 13 Feb 2008 10:37:53 +0000</pubDate>
		<dc:creator>Denny Cherry</dc:creator>
				<category><![CDATA[Article]]></category>
		<category><![CDATA[Cache]]></category>
		<category><![CDATA[RAM]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/sql-server/new-article-configuring-sql-server-memory-settings/</guid>
		<description><![CDATA[I’ve published a new tip over on SearchSQLServer.com entitled “Configuring SQL Server memory settings“.  In it I talk about how to correctly setup the memory settings for SQL Server to get SQL setup correctly. Denny]]></description>
				<content:encoded><![CDATA[<p>I’ve published a new tip over on <a target="_blank" href="http://www.searchsqlserver.com/" title="Search SQL Server">SearchSQLServer.com</a> entitled “<a target="_blank" href="http://searchsqlserver.techtarget.com/tip/0,289483,sid87_gci1299068,00.html" title="Configuring SQL Server memory settings">Configuring SQL Server memory settings</a>“.  In it I talk about how to correctly setup the memory settings for SQL Server to get SQL setup correctly.</p>
<p>Denny</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/sql-server/new-article-configuring-sql-server-memory-settings/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Slide Decks and Sample Code from SoCal Code Camp</title>
		<link>http://itknowledgeexchange.techtarget.com/sql-server/slide-decks-and-sample-code-from-socal-code-camp/</link>
		<comments>http://itknowledgeexchange.techtarget.com/sql-server/slide-decks-and-sample-code-from-socal-code-camp/#comments</comments>
		<pubDate>Mon, 28 Jan 2008 23:56:28 +0000</pubDate>
		<dc:creator>Denny Cherry</dc:creator>
				<category><![CDATA[Beta]]></category>
		<category><![CDATA[Cache]]></category>
		<category><![CDATA[CLR]]></category>
		<category><![CDATA[Config]]></category>
		<category><![CDATA[In Person Events]]></category>
		<category><![CDATA[Query tuning]]></category>
		<category><![CDATA[Resource Governor]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Server 2005]]></category>
		<category><![CDATA[SQL Server 2008]]></category>
		<category><![CDATA[SSMS]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/sql-server/slide-decks-and-sample-code-from-socal-code-camp/</guid>
		<description><![CDATA[The SoCal Code Camp was this last weekend. ... As promised here are the slide decks and sample T/SQL code from the four sessions.]]></description>
				<content:encoded><![CDATA[<p>The SoCal Code Camp was this last weekend.  I had a great time attending and speaking at the code camp this time around.   I hope that everyone who attended my sessions had as much fun attending the sessions as I did speaking at them.  I did my best to make them as much fun and interactive as I could.</p>
<p>As promised here are the slide decks and sample T/SQL code from the four sessions.  Everything is within a single ZIP file.  I&#8217;ve included two copies of each slide deck.  One in the Office 2007 format, and one in the Office 97-2003 format.  They are identical to each other, but I wanted to include both so that people with the older version of Microsoft Office can see the deck without having to download and install the patch which allows Office 2003 to view Office 2007 files.</p>
<p>The sample scripts which I&#8217;ve included are all run against the AdventureWorks database or the AdventureWorksDW database (check the USE commands at the top of the scripts).  If they need a different database they will create the new database.</p>
<p>Session 1 &#8211; <a href="http://www.mrdenny.com/downloads/SQL%20Server%20Query%20Tuning.zip" title="SQL Server 2008 Resource Governor.zip">SQL Server Query Tuning</a> (SQL 2000+)</p>
<p>Session 2 &#8211; <a href="http://www.mrdenny.com/downloads/SQL%20Server%202008%20Resource%20Governor.zip" title="SQL Server 2008 Resource Governor.zip">SQL Server 2008 Resource Governor</a> (SQL 2008 CTP5+ only)</p>
<p>Session 3 - <a href="http://www.mrdenny.com/downloads/SQL%20Server%20Service%20Broker%20in%20the%20Real%20World.zip" title="SQL Server Service Broker in the Real World.zip">SQL Server Service Broker in the Real World</a> (SQL 2005+) (I&#8217;ve fixed the problem with the single server script that we were having at the Code Camp.  Turns out I had left the route in place which is why the message never showed up.  The first script didn&#8217;t run correctly because I had run the server to server script on my virtual machine and the route was left by accident.)</p>
<p>Session 4 &#8211; <a href="http://www.mrdenny.com/downloads/SQL%20Server%202008%20What's%20on%20the%20Horizon.zip" title="SQL Server 2008 What's on the Horizon.zip">SQL Server 2008 What&#8217;s on the Horizon</a> (SQL 2008 CTP5+)</p>
<p>If you have any questions about these slide decks or sample code feel free to post a comment here, or drop me an email.</p>
<p>Denny</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/sql-server/slide-decks-and-sample-code-from-socal-code-camp/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>How SQL decides how much procedure cache and how much buffer cache to use.</title>
		<link>http://itknowledgeexchange.techtarget.com/sql-server/how-sql-decides-how-much-procedure-cache-and-how-much-buffer-cache-to-use/</link>
		<comments>http://itknowledgeexchange.techtarget.com/sql-server/how-sql-decides-how-much-procedure-cache-and-how-much-buffer-cache-to-use/#comments</comments>
		<pubDate>Mon, 22 Oct 2007 10:17:16 +0000</pubDate>
		<dc:creator>Denny Cherry</dc:creator>
				<category><![CDATA[Cache]]></category>
		<category><![CDATA[Config]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/sql-server/how-sql-decides-how-much-procedure-cache-and-how-much-buffer-cache-to-use/</guid>
		<description><![CDATA[There are two main types of cache which SQL Server deals with, the buffer cache and the procedure cache.  The procedure cache is where the execution plans for procedures and queries are storred.  The buffer cache is where the actual data is cached so that SQL Server doesn't have to go to disk to get often accessed data.]]></description>
				<content:encoded><![CDATA[<p>There are two main types of cache which SQL Server deals with, the buffer cache and the procedure cache.  The procedure cache is where the execution plans for procedures and queries are stored.  The buffer cache is where the actual data is cached so that SQL Server doesn&#8217;t have to go to disk to get often accessed data.</p>
<p>The version of SQL Server that you are running will determine how SQL calculates the maximum size of the procedure cache.</p>
<p>SQL 2000 &#8211; 50% of the memory or 1 Gig which ever is lower</p>
<p>SQL 2005 RTM to SP1 &#8211; 75% of the first 8 Gigs of RAM + 50% of the next 56 Gigs of RAM + 25% of the ram over 64 Gigs.</p>
<p>SQL 2005 SP2 and up &#8211; 75% of the first 4 Gigs of RAM + 10% of the ram over 4 Gigs</p>
<p>As I understand the reason for the change the original settings were causing SQL Server to lockup for some customers as not enough RAM was left over for the buffer cache.</p>
<p>If you are using SQL 2005 in a Win32 platform these calculations change again as the procedure cache must remain within the first 2 Gigs of memory giving you a max of 2 Gigs of procedure cache no matter how much memory you install.</p>
<p>Denny</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/sql-server/how-sql-decides-how-much-procedure-cache-and-how-much-buffer-cache-to-use/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
