 




<?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>The Multifunctioning DBA &#187; memory</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/dba/tag/memory/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/dba</link>
	<description></description>
	<lastBuildDate>Wed, 06 Feb 2013 01:01:48 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>DR SQL Server Memory Test</title>
		<link>http://itknowledgeexchange.techtarget.com/dba/dr-sql-server-memory-test/</link>
		<comments>http://itknowledgeexchange.techtarget.com/dba/dr-sql-server-memory-test/#comments</comments>
		<pubDate>Fri, 23 Sep 2011 13:32:06 +0000</pubDate>
		<dc:creator>Colin Smith</dc:creator>
				<category><![CDATA[DR]]></category>
		<category><![CDATA[memory]]></category>
		<category><![CDATA[Settings]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/dba/dr-sql-server-memory-test/</guid>
		<description><![CDATA[My new company has a DR Test coming up and we came up with a great idea on how to make the SQL Servers test pretty simple. We use SAN Block level replication so we should be able to mount up our shared disk to any server that has the correct version of SQL Server [...]]]></description>
				<content:encoded><![CDATA[<p>My new company has a DR Test coming up and we came up with a great idea on how to make the SQL Servers test pretty simple. We use SAN Block level replication so we should be able to mount up our shared disk to any server that has the correct version of SQL Server installed. One question that we had though was that if SQL Server is configured to take say 1024 MB of memory minimum but the server only has 4 GB total would it start up. The answer is yes it will. I tested this using SQL Server 2008 running in Virtual Box. I had SQL Server set up to grab 1024 MB minimum at startup. I shut down the VM and configured the maching to only have 52MB and then I started it back up. SQL Server came up just fine. So this tells me that it will start up and then we can modify the settings to be what we would like.</p>
<p>Hope this helps.</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/dba/dr-sql-server-memory-test/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting Min and Max Memory settings in SQL with Powershell</title>
		<link>http://itknowledgeexchange.techtarget.com/dba/setting-min-and-max-memory-settings-in-sql-with-powershell/</link>
		<comments>http://itknowledgeexchange.techtarget.com/dba/setting-min-and-max-memory-settings-in-sql-with-powershell/#comments</comments>
		<pubDate>Tue, 07 Dec 2010 21:14:45 +0000</pubDate>
		<dc:creator>Colin Smith</dc:creator>
				<category><![CDATA[DBA]]></category>
		<category><![CDATA[memory]]></category>
		<category><![CDATA[Powershell]]></category>
		<category><![CDATA[SMO]]></category>
		<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/dba/setting-min-and-max-memory-settings-in-sql-with-powershell/</guid>
		<description><![CDATA[So today I was thinking about some of the things that are currently not set up properly on some of my servers. I got to thinking that a lot of them were never set up properly for Min and Max Server memory. Most of them, that were installed before my time, are set up with [...]]]></description>
				<content:encoded><![CDATA[<p>So today I was thinking about some of the things that are currently not set up properly on some of my servers. I got to thinking that a lot of them were never set up properly for Min and Max Server memory. Most of them, that were installed before my time, are set up with the defaults and as you all know, that is not usually the best practice.</p>
<p>I thought it would be nice to have a way to progamatically set those values based on how much memory the server has total. I started tooling around in Powershell using SMO and I found the settings that I was looking for. It is really pretty simple to change theses values as I have tested it on my own local SQL Server. Here is what you need to do.</p>
<p>[System.Reflection.Assembly]::LoadWithPartialName(&#8216;Microsoft.SqlServer.SMO&#8217;) | out-null<br />
$s = New-Object (&#8216;Microsoft.SqlServer.Management.Smo.Server&#8217;) &#8220;ServerName&#8221;</p>
<p>$s.Configuration.MinServerMemory.ConfigValue = 1024<br />
$s.Configuration.MaxServerMemory.ConfigValue = 1024<br />
$s.Configuration.Alter()</p>
<p>The above code will set both the Min and Max Server memory settings to 1024 MB. This change will not be in affect until you restart sql server. But I now know that I can do this progamatically if I come up with a standard for these settings that is based on something that I can progamatically determine. My first thought is to do this based on the total Memory in the server and then figure out how to set both values. I will post more as I come up with it but I thought this was a nice little tidbit.</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/dba/setting-min-and-max-memory-settings-in-sql-with-powershell/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
