 




<?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; file managemnt</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/dba/tag/file-managemnt/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>Powershell Disable db File Autogrow</title>
		<link>http://itknowledgeexchange.techtarget.com/dba/powershell-disable-db-file-autogrow/</link>
		<comments>http://itknowledgeexchange.techtarget.com/dba/powershell-disable-db-file-autogrow/#comments</comments>
		<pubDate>Wed, 19 Oct 2011 13:16:39 +0000</pubDate>
		<dc:creator>Colin Smith</dc:creator>
				<category><![CDATA[autogrow]]></category>
		<category><![CDATA[file managemnt]]></category>
		<category><![CDATA[Powershell]]></category>
		<category><![CDATA[SMO]]></category>
		<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/dba/powershell-disable-db-file-autogrow/</guid>
		<description><![CDATA[In order to Disable autogrow on your database files it is a bit tricky. One would think that in SMO you would have an autogrow flag that could be turned on and off like there is in the GUI. Well this is not the case. So if you take my script from http://itknowledgeexchange.techtarget.com/dba/powershell-script-to-change-data-and-log-files-that-are-growing-by-percent/ and make a [...]]]></description>
				<content:encoded><![CDATA[<div>In  order to Disable autogrow on your database files it is a bit tricky. One  would think that in SMO you would have an autogrow flag that could be  turned on and off like there is in the GUI. Well this is not the case.  So if you take my script from <a href="http://itknowledgeexchange.techtarget.com/dba/powershell-script-to-change-data-and-log-files-that-are-growing-by-percent/" target="_blank">http://itknowledgeexchange.techtarget.com/dba/powershell-script-to-change-data-and-log-files-that-are-growing-by-percent/</a></div>
<div>and make a little bit of a change then the autogrow will be turned off.</div>
<div></div>
<div>Just set the Growth to 0 and most important is to change the growthtype to none:</div>
<div></div>
<div>$file.growth = 0<br />
$file.growthtype = &#8220;none&#8221;<br />
$file.alter()</div>
<div></div>
<div>That is it and then when you look in the GUI autogrow will be off.</div>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/dba/powershell-disable-db-file-autogrow/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
