<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>SharePoint Geek</title>
	
	<link>http://sharepoint-geek.com</link>
	<description>SharePoint Tips &amp; Tricks</description>
	<lastBuildDate>Tue, 24 Aug 2010 19:45:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/SharepointGeek" /><feedburner:info uri="sharepointgeek" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>How To Find The Size Of The Data Files In An SQL Server 2008 Database Instance</title>
		<link>http://feedproxy.google.com/~r/SharepointGeek/~3/RDtO5PwMEXE/</link>
		<comments>http://sharepoint-geek.com/2010/08/24/how-to-find-the-size-of-the-data-files-in-an-sql-server-2008-database-instance/#comments</comments>
		<pubDate>Tue, 24 Aug 2010 14:31:23 +0000</pubDate>
		<dc:creator>Stewart Schatz</dc:creator>
				<category><![CDATA[sql]]></category>
		<category><![CDATA[sql server]]></category>
		<category><![CDATA[sql server 2008]]></category>

		<guid isPermaLink="false">http://sharepoint-geek.com/2010/08/24/how-to-find-the-size-of-the-data-files-in-an-sql-server-2008-database-instance/</guid>
		<description><![CDATA[Here is an SQL that you can run to find the total used size of an SQL Server 2008 database instance: CREATE TABLE #t (name SYSNAME, rows CHAR(11), reserved VARCHAR(18), &#160; &#160;data VARCHAR(18), index_size VARCHAR(18), unused VARCHAR(18)) &#160; exec sp_MSforeachdb ' &#160; &#38;#160;&#38;#160; use [+]; &#160; &#160;&#38;#160;&#38;#160; if (select DB_NAME())&#38;lt;&#38;gt; ''tempdb'' &#160; &#160;&#38;#160;&#38;#160;&#38;#160;&#38;#160;&#38;#160; begin &#160; [...]]]></description>
			<content:encoded><![CDATA[<p>Here is an SQL that you can run to find the total used size of an SQL Server 2008 database instance:</p>
<p>  <div class="codesnip-container" ><div class="sql codesnip" style="font-family:monospace;"><span class="kw1">CREATE</span> <span class="kw1">TABLE</span> <span class="co2">#t (name SYSNAME, rows CHAR(11), reserved VARCHAR(18), &nbsp; &nbsp;data VARCHAR(18), index_size VARCHAR(18), unused VARCHAR(18)) &nbsp; exec sp_MSforeachdb ' &nbsp; &amp;#160;&amp;#160; use [+]; &nbsp; &nbsp;&amp;#160;&amp;#160; if (select DB_NAME())&amp;lt;&amp;gt; ''tempdb'' &nbsp; &nbsp;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; begin &nbsp; &nbsp;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; EXEC sp_msforeachtable ''INSERT INTO #t EXEC sp_spaceused [?]'' &nbsp; &nbsp;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; end &nbsp; &nbsp;&amp;#160;&amp;#160; ', '+' &nbsp; &nbsp;SELECT SUM(CONVERT(INT, SUBSTRING(data, 1, LEN(data)-3))) as sizeKB FROM #t &nbsp; &nbsp; DROP TABLE #t</span></div></div> </p>

	Tags: <a href="http://sharepoint-geek.com/category/sql/" title="sql" rel="tag">sql</a>, <a href="http://sharepoint-geek.com/category/sql-server/" title="sql server" rel="tag">sql server</a>, <a href="http://sharepoint-geek.com/category/sql-server-2008/" title="sql server 2008" rel="tag">sql server 2008</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li>No related posts.</li>
	</ul>


<p><a href="http://feedads.g.doubleclick.net/~a/7WdrKYNZYpevonDC7Ejg8lkyro8/0/da"><img src="http://feedads.g.doubleclick.net/~a/7WdrKYNZYpevonDC7Ejg8lkyro8/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/7WdrKYNZYpevonDC7Ejg8lkyro8/1/da"><img src="http://feedads.g.doubleclick.net/~a/7WdrKYNZYpevonDC7Ejg8lkyro8/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/SharepointGeek/~4/RDtO5PwMEXE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://sharepoint-geek.com/2010/08/24/how-to-find-the-size-of-the-data-files-in-an-sql-server-2008-database-instance/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://sharepoint-geek.com/2010/08/24/how-to-find-the-size-of-the-data-files-in-an-sql-server-2008-database-instance/</feedburner:origLink></item>
		<item>
		<title>SQL Server Versions List</title>
		<link>http://feedproxy.google.com/~r/SharepointGeek/~3/7hFfglJMtjY/</link>
		<comments>http://sharepoint-geek.com/2010/07/19/sql-server-versions-list/#comments</comments>
		<pubDate>Mon, 19 Jul 2010 18:25:41 +0000</pubDate>
		<dc:creator>Stewart Schatz</dc:creator>
				<category><![CDATA[sql]]></category>
		<category><![CDATA[sql server]]></category>
		<category><![CDATA[sql server 2008]]></category>

		<guid isPermaLink="false">http://sharepoint-geek.com/2010/07/19/sql-server-versions-list/</guid>
		<description><![CDATA[Bill Graziano at SQLTeam.com has a listing of all the SQL Server versions that come in very handy: http://www.sqlteam.com/article/sql-server-versions Tags: sql, sql server, sql server 2008 Related posts No related posts.]]></description>
			<content:encoded><![CDATA[<p>Bill Graziano at <a href="http://www.sqlteam.com">SQLTeam.com</a> has a listing of all the SQL Server versions that come in very handy:    </p>
<p><a title="http://www.sqlteam.com/article/sql-server-versions" href="http://www.sqlteam.com/article/sql-server-versions">http://www.sqlteam.com/article/sql-server-versions</a></p>

	Tags: <a href="http://sharepoint-geek.com/category/sql/" title="sql" rel="tag">sql</a>, <a href="http://sharepoint-geek.com/category/sql-server/" title="sql server" rel="tag">sql server</a>, <a href="http://sharepoint-geek.com/category/sql-server-2008/" title="sql server 2008" rel="tag">sql server 2008</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li>No related posts.</li>
	</ul>


<p><a href="http://feedads.g.doubleclick.net/~a/KqZNsZh6ht63XsF8s3QJwd9RoVU/0/da"><img src="http://feedads.g.doubleclick.net/~a/KqZNsZh6ht63XsF8s3QJwd9RoVU/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/KqZNsZh6ht63XsF8s3QJwd9RoVU/1/da"><img src="http://feedads.g.doubleclick.net/~a/KqZNsZh6ht63XsF8s3QJwd9RoVU/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/SharepointGeek/~4/7hFfglJMtjY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://sharepoint-geek.com/2010/07/19/sql-server-versions-list/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://sharepoint-geek.com/2010/07/19/sql-server-versions-list/</feedburner:origLink></item>
		<item>
		<title>SharePoint 2010 Administration Toolkit Released</title>
		<link>http://feedproxy.google.com/~r/SharepointGeek/~3/VB2IaqKQtDA/</link>
		<comments>http://sharepoint-geek.com/2010/07/15/sharepoint-2010-administration-toolkit-released/#comments</comments>
		<pubDate>Thu, 15 Jul 2010 22:30:49 +0000</pubDate>
		<dc:creator>Stewart Schatz</dc:creator>
				<category><![CDATA[Administration Toolkit]]></category>
		<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[SharePoint Foundation 2010]]></category>
		<category><![CDATA[SharePoint Server 2010]]></category>

		<guid isPermaLink="false">http://sharepoint-geek.com/2010/07/15/sharepoint-2010-administration-toolkit-released/</guid>
		<description><![CDATA[The SharePoint 2010 Administration Toolkit has been released. More info: Microsoft SharePoint Team Blog Download: Microsoft Documentation SharePoint Foundation 2010 SharePoint Server 2010 Tags: Administration Toolkit, SharePoint 2010, SharePoint Foundation 2010, SharePoint Server 2010 Related posts No related posts.]]></description>
			<content:encoded><![CDATA[<p>The SharePoint 2010 Administration Toolkit has been released.</p>
<p>More info: <a href="http://blogs.msdn.com/sharepoint/">Microsoft SharePoint Team Blog</a>    <br />Download: <a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=718447d8-0814-427a-81c3-c9c3d84c456e&amp;displaylang=en">Microsoft</a>    <br />Documentation</p>
<ul>
<li><a href="http://technet.microsoft.com/en-us/library/cc508986.aspx">SharePoint Foundation 2010</a></li>
<li><a href="http://technet.microsoft.com/en-us/library/cc508851.aspx">SharePoint Server 2010</a></li>
</ul>

	Tags: <a href="http://sharepoint-geek.com/category/administration-toolkit/" title="Administration Toolkit" rel="tag">Administration Toolkit</a>, <a href="http://sharepoint-geek.com/category/sharepoint-2010/" title="SharePoint 2010" rel="tag">SharePoint 2010</a>, <a href="http://sharepoint-geek.com/category/sharepoint-foundation-2010/" title="SharePoint Foundation 2010" rel="tag">SharePoint Foundation 2010</a>, <a href="http://sharepoint-geek.com/category/sharepoint-server-2010/" title="SharePoint Server 2010" rel="tag">SharePoint Server 2010</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li>No related posts.</li>
	</ul>


<p><a href="http://feedads.g.doubleclick.net/~a/Q3ZcoZEMBh1dOmfK9CkX3QjuBMg/0/da"><img src="http://feedads.g.doubleclick.net/~a/Q3ZcoZEMBh1dOmfK9CkX3QjuBMg/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/Q3ZcoZEMBh1dOmfK9CkX3QjuBMg/1/da"><img src="http://feedads.g.doubleclick.net/~a/Q3ZcoZEMBh1dOmfK9CkX3QjuBMg/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/SharepointGeek/~4/VB2IaqKQtDA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://sharepoint-geek.com/2010/07/15/sharepoint-2010-administration-toolkit-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://sharepoint-geek.com/2010/07/15/sharepoint-2010-administration-toolkit-released/</feedburner:origLink></item>
		<item>
		<title>How To Delete An SSP (Shared Services Provider) In Sharepoint</title>
		<link>http://feedproxy.google.com/~r/SharepointGeek/~3/K8jCWBZE8LM/</link>
		<comments>http://sharepoint-geek.com/2010/07/15/how-to-delete-an-ssp-shared-services-provider-in-sharepoint/#comments</comments>
		<pubDate>Thu, 15 Jul 2010 18:16:07 +0000</pubDate>
		<dc:creator>Stewart Schatz</dc:creator>
				<category><![CDATA[Shared Services Provider - SSP]]></category>
		<category><![CDATA[stsadm]]></category>

		<guid isPermaLink="false">http://sharepoint-geek.com/2010/07/15/how-to-delete-an-ssp-shared-services-provider-in-sharepoint/</guid>
		<description><![CDATA[Sharepoint Shared Services Providers (SSPs) can be forced to delete using the following stsadm command: stsadm -o deletessp -title &#34;SSPNAME&#34; -force &#160; If you also want to delete the SSP database also use the following stsadm command: stsadm -o deletessp -title &#34;SSPNAME&#34; -deletedatabases –force Tags: Shared Services Provider - SSP, stsadm Related posts No related [...]]]></description>
			<content:encoded><![CDATA[<p>Sharepoint Shared Services Providers (SSPs) can be forced to delete using the following stsadm command:</p>
<div class="codesnip-container" >
<div class="dos codesnip" style="font-family:monospace;">stsadm -o deletessp -<a href="http://www.ss64.com/nt/title.html"><span class="kw3">title</span></a> &quot;SSPNAME&quot; -force</div>
</div>
<p>&#160;</p>
<p>If you also want to delete the SSP database also use the following stsadm command:</p>
<div class="codesnip-container" >
<div class="dos codesnip" style="font-family:monospace;">stsadm -o deletessp -<a href="http://www.ss64.com/nt/title.html"><span class="kw3">title</span></a> &quot;SSPNAME&quot; -deletedatabases –force</div>
</div>

	Tags: <a href="http://sharepoint-geek.com/category/shared-services-provider-ssp/" title="Shared Services Provider - SSP" rel="tag">Shared Services Provider - SSP</a>, <a href="http://sharepoint-geek.com/category/stsadm/" title="stsadm" rel="tag">stsadm</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li>No related posts.</li>
	</ul>


<p><a href="http://feedads.g.doubleclick.net/~a/Uo6MN4AcX51y_tgZs2s99yh7NPA/0/da"><img src="http://feedads.g.doubleclick.net/~a/Uo6MN4AcX51y_tgZs2s99yh7NPA/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/Uo6MN4AcX51y_tgZs2s99yh7NPA/1/da"><img src="http://feedads.g.doubleclick.net/~a/Uo6MN4AcX51y_tgZs2s99yh7NPA/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/SharepointGeek/~4/K8jCWBZE8LM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://sharepoint-geek.com/2010/07/15/how-to-delete-an-ssp-shared-services-provider-in-sharepoint/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://sharepoint-geek.com/2010/07/15/how-to-delete-an-ssp-shared-services-provider-in-sharepoint/</feedburner:origLink></item>
		<item>
		<title>Sharepoint WSS Search Server Stuck On “Pausing”</title>
		<link>http://feedproxy.google.com/~r/SharepointGeek/~3/CJOmVq_XkRk/</link>
		<comments>http://sharepoint-geek.com/2010/07/07/sharepoint-wss-search-server-stuck-on-pausing/#comments</comments>
		<pubDate>Wed, 07 Jul 2010 12:14:04 +0000</pubDate>
		<dc:creator>Stewart Schatz</dc:creator>
				<category><![CDATA[Windows Server]]></category>
		<category><![CDATA[Windows Service]]></category>
		<category><![CDATA[search]]></category>
		<category><![CDATA[search services]]></category>
		<category><![CDATA[wss]]></category>

		<guid isPermaLink="false">http://sharepoint-geek.com/2010/07/07/sharepoint-wss-search-server-stuck-on-pausing/</guid>
		<description><![CDATA[I ran across an issue this morning that had the Sharepoint WSS Search Server in a “Pausing” state.&#160; I had to restart the Office SharePoint Server Search service in order to resolve the issue. Now to see if it will complete successfully. Tags: search, search services, Windows Server, Windows Service, wss Related posts No related [...]]]></description>
			<content:encoded><![CDATA[<p>I ran across an issue this morning that had the Sharepoint WSS Search Server in a “Pausing” state.&#160; I had to restart the Office SharePoint Server Search service in order to resolve the issue.</p>
<p>Now to see if it will complete successfully.</p>

	Tags: <a href="http://sharepoint-geek.com/category/search/" title="search" rel="tag">search</a>, <a href="http://sharepoint-geek.com/category/search-services/" title="search services" rel="tag">search services</a>, <a href="http://sharepoint-geek.com/category/windows-server/" title="Windows Server" rel="tag">Windows Server</a>, <a href="http://sharepoint-geek.com/category/windows-service/" title="Windows Service" rel="tag">Windows Service</a>, <a href="http://sharepoint-geek.com/category/wss/" title="wss" rel="tag">wss</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li>No related posts.</li>
	</ul>


<p><a href="http://feedads.g.doubleclick.net/~a/mYr747iaS6EPuXigc66oEJUb3cY/0/da"><img src="http://feedads.g.doubleclick.net/~a/mYr747iaS6EPuXigc66oEJUb3cY/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/mYr747iaS6EPuXigc66oEJUb3cY/1/da"><img src="http://feedads.g.doubleclick.net/~a/mYr747iaS6EPuXigc66oEJUb3cY/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/SharepointGeek/~4/CJOmVq_XkRk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://sharepoint-geek.com/2010/07/07/sharepoint-wss-search-server-stuck-on-pausing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://sharepoint-geek.com/2010/07/07/sharepoint-wss-search-server-stuck-on-pausing/</feedburner:origLink></item>
		<item>
		<title>Host Header On SSL Sites</title>
		<link>http://feedproxy.google.com/~r/SharepointGeek/~3/AcyUeSqNnP0/</link>
		<comments>http://sharepoint-geek.com/2010/06/24/host-header-on-ssl-sites/#comments</comments>
		<pubDate>Thu, 24 Jun 2010 17:18:00 +0000</pubDate>
		<dc:creator>Stewart Schatz</dc:creator>
				<category><![CDATA[IIS]]></category>
		<category><![CDATA[ssl]]></category>

		<guid isPermaLink="false">http://sharepoint-geek.com/2010/06/24/host-header-on-ssl-sites/</guid>
		<description><![CDATA[This is an update to our previous post (Enable Host Headers On An SSL/HTTPS Site). Which used the following command to enable host headers on SSL sites: cscript.exe adsutil.vbs set /w3svc/&#60;site-identifier&#62;/SecureBindings &#34;:443:&#60;host header&#62;&#34; I ran into some issues with using SecureBindings with the Sharepoint Central Administration sites so I thought I would post some of [...]]]></description>
			<content:encoded><![CDATA[<p>This is an update to our previous post (<a href="http://sharepoint-geek.com/2010/02/26/enable-host-headers-on-an-sslhttps-site/">Enable Host Headers On An SSL/HTTPS Site</a>).  Which used the following command to enable host headers on SSL sites:</p>
<div class="codesnip-container" >
<div class="dos codesnip" style="font-family:monospace;">cscript.exe adsutil.vbs <a href="http://www.ss64.com/nt/set.html"><span class="kw3">set</span></a> /w3svc/&lt;site-identifier&gt;/SecureBindings &quot;:<span class="nu0">443</span>:&lt;host header&gt;&quot;</div>
</div>
<p>I ran into some issues with using SecureBindings with the Sharepoint Central Administration sites so I thought I would post some of the other commands that I used:</p>
<p>To find out what bindings are on a site use the following command:</p>
<div class="codesnip-container" >
<div class="dos codesnip" style="font-family:monospace;">cscript.exe adsutil.vbs get w3svc/&lt;site-identifier&gt;/securebindings</div>
</div>
<p>To remove the host header from an SSL site use the following command:</p>
<div class="codesnip-container" >
<div class="dos codesnip" style="font-family:monospace;">cscript.exe adsutil.vbs <a href="http://www.ss64.com/nt/set.html"><span class="kw3">set</span></a> /w3svc/&lt;site-identifier&gt;/SecureBindings &quot;:<span class="nu0">443</span>:&quot;</div>
</div>

	Tags: <a href="http://sharepoint-geek.com/category/iis/" title="IIS" rel="tag">IIS</a>, <a href="http://sharepoint-geek.com/category/ssl/" title="ssl" rel="tag">ssl</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li>No related posts.</li>
	</ul>


<p><a href="http://feedads.g.doubleclick.net/~a/zf1BwRrsyYgJUjV7bq2dbvYdTjM/0/da"><img src="http://feedads.g.doubleclick.net/~a/zf1BwRrsyYgJUjV7bq2dbvYdTjM/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/zf1BwRrsyYgJUjV7bq2dbvYdTjM/1/da"><img src="http://feedads.g.doubleclick.net/~a/zf1BwRrsyYgJUjV7bq2dbvYdTjM/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/SharepointGeek/~4/AcyUeSqNnP0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://sharepoint-geek.com/2010/06/24/host-header-on-ssl-sites/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://sharepoint-geek.com/2010/06/24/host-header-on-ssl-sites/</feedburner:origLink></item>
		<item>
		<title>Shrink All Log Files Within A MS SQL 2008 Instance</title>
		<link>http://feedproxy.google.com/~r/SharepointGeek/~3/5LghPJA3Ouo/</link>
		<comments>http://sharepoint-geek.com/2010/06/18/shrink-all-log-files-within-a-ms-sql-2008-instance/#comments</comments>
		<pubDate>Fri, 18 Jun 2010 17:57:49 +0000</pubDate>
		<dc:creator>Stewart Schatz</dc:creator>
				<category><![CDATA[sql]]></category>
		<category><![CDATA[sql server]]></category>
		<category><![CDATA[sql server 2008]]></category>
		<category><![CDATA[transaction logs]]></category>

		<guid isPermaLink="false">http://sharepoint-geek.com/2010/06/18/shrink-all-log-files-within-a-ms-sql-2008-instance/</guid>
		<description><![CDATA[This is an update to a previous post (Shrink All Log Files Within A MS SQL Instance) that has been edited to work in SQL Server 2008. &#60;br /&#62; declare @ssql nvarchar&#40;4000&#41;&#60;br /&#62; SET @ssql= '&#60;br /&#62; &#160; &#160; if ''?'' not in (''tempdb'',''master'',''model'',''msdb'')&#60;br /&#62; &#160; &#160; &#160; &#160; begin&#60;br /&#62; &#160; &#160; &#160; &#160; [...]]]></description>
			<content:encoded><![CDATA[<p>This is an update to a previous post (<a href="http://sharepoint-geek.com/2010/04/07/shrink-all-log-files-within-a-ms-sql-instance/">Shrink All Log Files Within A MS SQL Instance</a>) that has been edited to work in SQL Server 2008.</p>
<pre>
<div class="codesnip-container" >
<div class="sql codesnip" style="font-family:monospace;"><span class="sy0">&lt;</span>br <span class="sy0">/&gt;</span>
declare @ssql nvarchar<span class="br0">&#40;</span>4000<span class="br0">&#41;</span><span class="sy0">&lt;</span>br <span class="sy0">/&gt;</span>
<span class="kw1">SET</span> @ssql<span class="sy0">=</span> <span class="st0">'&lt;br /&gt;
&nbsp; &nbsp; if '</span><span class="st0">'?'</span><span class="st0">' not in ('</span><span class="st0">'tempdb'</span><span class="st0">','</span><span class="st0">'master'</span><span class="st0">','</span><span class="st0">'model'</span><span class="st0">','</span><span class="st0">'msdb'</span><span class="st0">')&lt;br /&gt;
&nbsp; &nbsp; &nbsp; &nbsp; begin&lt;br /&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; use [?]&lt;br /&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; declare @tsql nvarchar(4000) set @tsql = '</span><span class="st0">''</span><span class="st0">'&lt;br /&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; declare @recmodel nvarchar(10)&lt;br /&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; declare @iLogFile int&lt;br /&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; declare LogFiles cursor for&lt;br /&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; select fileid from sysfiles where &nbsp;status &amp; 0x40 = 0x40&lt;br /&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; open LogFiles&lt;br /&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fetch next from LogFiles into @iLogFile&lt;br /&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; while @@fetch_status = 0&lt;br /&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; begin&lt;br /&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; select @recmodel = (SELECT recovery_model_desc FROM sys.databases WHERE name = '</span><span class="st0">'?'</span><span class="st0">' )&lt;br /&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if @recmodel = '</span><span class="st0">'FULL'</span><span class="st0">'&lt;br /&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; begin&lt;br /&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; set @tsql = @tsql + '</span><span class="st0">'use [?] '</span><span class="st0">'&lt;br /&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; set @tsql = @tsql + '</span><span class="st0">'ALTER DATABASE [?] SET RECOVERY SIMPLE '</span><span class="st0">'&lt;br /&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; set @tsql = @tsql + '</span><span class="st0">'DBCC SHRINKFILE('</span><span class="st0">'+cast(@iLogFile as varchar(5))+'</span><span class="st0">', 1) '</span><span class="st0">'&lt;br /&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; set @tsql = @tsql + '</span><span class="st0">'ALTER DATABASE [?] SET RECOVERY FULL '</span><span class="st0">'&lt;br /&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end&lt;br /&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else&lt;br /&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; set @tsql = @tsql + '</span><span class="st0">'DBCC SHRINKFILE('</span><span class="st0">'+cast(@iLogFile as varchar(5))+'</span><span class="st0">', 1) '</span><span class="st0">'&lt;br /&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fetch next from LogFiles into @iLogFile&lt;br /&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end&lt;br /&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; --set @tsql = @tsql + '</span><span class="st0">' BACKUP LOG [?] WITH TRUNCATE_ONLY '</span><span class="st0">' + @tsql&lt;br /&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; --print @tsql&lt;br /&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; exec(@tsql)&lt;br /&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; close LogFiles&lt;br /&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DEALLOCATE LogFiles&lt;br /&gt;
&nbsp; &nbsp; &nbsp; &nbsp; end'</span><span class="sy0">&lt;</span>br <span class="sy0">/&gt;</span>
exec sp_msforeachdb @ssql<span class="sy0">&lt;</span>br <span class="sy0">/&gt;</span></div>
</div>
</pre>

	Tags: <a href="http://sharepoint-geek.com/category/sql/" title="sql" rel="tag">sql</a>, <a href="http://sharepoint-geek.com/category/sql-server/" title="sql server" rel="tag">sql server</a>, <a href="http://sharepoint-geek.com/category/sql-server-2008/" title="sql server 2008" rel="tag">sql server 2008</a>, <a href="http://sharepoint-geek.com/category/transaction-logs/" title="transaction logs" rel="tag">transaction logs</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li>No related posts.</li>
	</ul>


<p><a href="http://feedads.g.doubleclick.net/~a/F6A-sOIOym1D_TFrhTpDvENhhZA/0/da"><img src="http://feedads.g.doubleclick.net/~a/F6A-sOIOym1D_TFrhTpDvENhhZA/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/F6A-sOIOym1D_TFrhTpDvENhhZA/1/da"><img src="http://feedads.g.doubleclick.net/~a/F6A-sOIOym1D_TFrhTpDvENhhZA/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/SharepointGeek/~4/5LghPJA3Ouo" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://sharepoint-geek.com/2010/06/18/shrink-all-log-files-within-a-ms-sql-2008-instance/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://sharepoint-geek.com/2010/06/18/shrink-all-log-files-within-a-ms-sql-2008-instance/</feedburner:origLink></item>
		<item>
		<title>Delete An Extended Web Application</title>
		<link>http://feedproxy.google.com/~r/SharepointGeek/~3/cC-08zB5xKY/</link>
		<comments>http://sharepoint-geek.com/2010/05/27/delete-an-extended-web-application/#comments</comments>
		<pubDate>Thu, 27 May 2010 17:07:00 +0000</pubDate>
		<dc:creator>Stewart Schatz</dc:creator>
				<category><![CDATA[Central Administration]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[MOSS]]></category>
		<category><![CDATA[Windows SharePoint Services Web Application]]></category>
		<category><![CDATA[extended web application]]></category>
		<category><![CDATA[web application]]></category>
		<category><![CDATA[wss]]></category>

		<guid isPermaLink="false">http://sharepoint-geek.com/2010/05/27/delete-an-extended-web-application/</guid>
		<description><![CDATA[Extended web applications are not listed in the web application list and cannot be deleted using the Delete Web Application link in Central Administration. Use the following steps to delete extended web applications: Start Central Administration Go to Application Management Click Remove SharePoint from IIS Web Site to get a page with a form similar [...]]]></description>
			<content:encoded><![CDATA[<p>Extended web applications are not listed in the web application list and cannot be deleted using the <strong>Delete Web Application</strong> link in Central Administration.</p>
<p>Use the following steps to <strong>delete extended web applications</strong>:</p>
<ol>
<li>Start <strong>Central Administration</strong></li>
<li>Go to <strong>Application Management</strong></li>
<li>Click <strong>Remove SharePoint from IIS Web Site</strong> to get a page with a form similar to the following.      <br /><a href="http://sharepoint-geek.com/wp-content/uploads/2010/05/image.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://sharepoint-geek.com/wp-content/uploads/2010/05/image_thumb.png" width="429" height="261" /></a> </li>
<li>Select the web application that the extended web app was extended from </li>
<li>Select which extention/zone to delete </li>
<li>Select whether to keep or delete the IIS Web site </li>
<li>Finally click <strong>OK</strong></li>
</ol>

	Tags: <a href="http://sharepoint-geek.com/category/central-administration/" title="Central Administration" rel="tag">Central Administration</a>, <a href="http://sharepoint-geek.com/category/extended-web-application/" title="extended web application" rel="tag">extended web application</a>, <a href="http://sharepoint-geek.com/category/iis/" title="IIS" rel="tag">IIS</a>, <a href="http://sharepoint-geek.com/category/moss/" title="MOSS" rel="tag">MOSS</a>, <a href="http://sharepoint-geek.com/category/web-application/" title="web application" rel="tag">web application</a>, <a href="http://sharepoint-geek.com/category/windows-sharepoint-services-web-application/" title="Windows SharePoint Services Web Application" rel="tag">Windows SharePoint Services Web Application</a>, <a href="http://sharepoint-geek.com/category/wss/" title="wss" rel="tag">wss</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li>No related posts.</li>
	</ul>


<p><a href="http://feedads.g.doubleclick.net/~a/HPLUjxAQMmO3Jrpuc1VWqTHd4_8/0/da"><img src="http://feedads.g.doubleclick.net/~a/HPLUjxAQMmO3Jrpuc1VWqTHd4_8/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/HPLUjxAQMmO3Jrpuc1VWqTHd4_8/1/da"><img src="http://feedads.g.doubleclick.net/~a/HPLUjxAQMmO3Jrpuc1VWqTHd4_8/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/SharepointGeek/~4/cC-08zB5xKY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://sharepoint-geek.com/2010/05/27/delete-an-extended-web-application/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://sharepoint-geek.com/2010/05/27/delete-an-extended-web-application/</feedburner:origLink></item>
		<item>
		<title>IIS Admin Error: Handle Is Invalid – Permissions SSL Certificate MachineKeys</title>
		<link>http://feedproxy.google.com/~r/SharepointGeek/~3/CjQLOuWIlzE/</link>
		<comments>http://sharepoint-geek.com/2010/05/05/iis-admin-error-handle-is-invalid-permissions-ssl-certificate-machinekeys/#comments</comments>
		<pubDate>Wed, 05 May 2010 18:32:18 +0000</pubDate>
		<dc:creator>Stewart Schatz</dc:creator>
				<category><![CDATA[External Collaboration Tool-Kit]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[adam]]></category>
		<category><![CDATA[ssl]]></category>

		<guid isPermaLink="false">http://sharepoint-geek.com/2010/05/05/iis-admin-error-handle-is-invalid-permissions-ssl-certificate-machinekeys/</guid>
		<description><![CDATA[Well, I’ve been trying to setup the External Collaboration Toolkit.&#160; All of the instructions tell how to do it as a standalone SharePoint install, but I am trying to get it setup in a SharePoint farm.&#160; One of the steps in the instructions is to setup ADAM to act as the authentication for external users.&#160; [...]]]></description>
			<content:encoded><![CDATA[<p>Well, I’ve been trying to setup the <a href="http://technet.microsoft.com/en-us/library/cc268155.aspx">External Collaboration Toolkit</a>.&#160; All of the instructions tell how to do it as a standalone SharePoint install, but I am trying to get it setup in a SharePoint farm.&#160; One of the steps in the instructions is to setup <a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=9688F8B9-1034-4EF6-A3E5-2A2A57B5C8E4&amp;displaylang=en">ADAM</a> to act as the authentication for external users.&#160; The communications with ADAM need to be SSL encrypted.&#160; So, I set it up the way the instructions say and went through the portion that ensures that the UserID that runs the ADAM service has access to the SSL Certificates.&#160; </p>
<p>That’s when I must have went wrong.&#160; Somehow, I removed access to the SSL Certificates from the service that runs the IIS Admin service.&#160; So, when I rebooted, IIS would not start.&#160; The only thing that was in the event log was:</p>
<blockquote><p><strong>Handle is invalid</strong></p>
</blockquote>
<p>Real helpful, huh?</p>
<p>Luckily, I was able to find <a href="http://support.microsoft.com/default.aspx?scid=KB;EN-US;278381">Microsoft KB Article #278381</a>.&#160; The basic thing is that I needed to reset the security on the SSL Certificates.&#160; Below is an explaination:</p>
<p>The MachineKeys are at the following location:    <br /><strong>All Users Profile\Application Data\Microsoft\Crypto\RSA</strong></p>
<p>The following settings are the default permissions for the MachineKeys folder:</p>
<table cellspacing="0" cellpadding="0" width="500" border="1">
<tbody>
<tr>
<td valign="top" width="104">Administrator</td>
<td valign="top" width="125">(Full Control)</td>
<td valign="top" width="269">This folder only</td>
</tr>
<tr>
<td valign="top" width="104">Everyone</td>
<td valign="top" width="125">(Special) </td>
<td valign="top" width="269">This folder, subfolders, and files</td>
</tr>
<tr>
<td valign="top" width="104">SYSTEM</td>
<td valign="top" width="125">(Full Control)</td>
<td valign="top" width="269">This folder, subfolders, and files</td>
</tr>
</tbody>
</table>
<pre>&#160;</pre>
<p>To view the special permissions for the Everyone group, right-click the <strong>MachineKeys</strong> folder, click <strong>Advanced</strong> on the <strong>Security</strong> tab, and then click <strong>View/Edit</strong>. The permissions consist of the following permissions: </p>
<ol>
<li>List Folder/Read Data </li>
<li>Read Attributes </li>
<li>Read Extended Attributes </li>
<li>Create Files/Write Data </li>
<li>Create Folders/Append Data </li>
<li>Write Attributes </li>
<li>Write Extended Attributes </li>
<li>Read Permissions </li>
</ol>
<p>&#160;</p>
<p>Select the <strong>Reset Permissions on all Child objects and enable propagation of inheritable permissions</strong> check box. </p>

	Tags: <a href="http://sharepoint-geek.com/category/adam/" title="adam" rel="tag">adam</a>, <a href="http://sharepoint-geek.com/category/external-collaboration-tool-kit/" title="External Collaboration Tool-Kit" rel="tag">External Collaboration Tool-Kit</a>, <a href="http://sharepoint-geek.com/category/iis/" title="IIS" rel="tag">IIS</a>, <a href="http://sharepoint-geek.com/category/ssl/" title="ssl" rel="tag">ssl</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li>No related posts.</li>
	</ul>


<p><a href="http://feedads.g.doubleclick.net/~a/d-7VclLcyvzI-zPDE9260h_9QtM/0/da"><img src="http://feedads.g.doubleclick.net/~a/d-7VclLcyvzI-zPDE9260h_9QtM/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/d-7VclLcyvzI-zPDE9260h_9QtM/1/da"><img src="http://feedads.g.doubleclick.net/~a/d-7VclLcyvzI-zPDE9260h_9QtM/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/SharepointGeek/~4/CjQLOuWIlzE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://sharepoint-geek.com/2010/05/05/iis-admin-error-handle-is-invalid-permissions-ssl-certificate-machinekeys/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://sharepoint-geek.com/2010/05/05/iis-admin-error-handle-is-invalid-permissions-ssl-certificate-machinekeys/</feedburner:origLink></item>
		<item>
		<title>Shrink All Log Files Within A MS SQL Instance</title>
		<link>http://feedproxy.google.com/~r/SharepointGeek/~3/j0s4CMfVyi8/</link>
		<comments>http://sharepoint-geek.com/2010/04/07/shrink-all-log-files-within-a-ms-sql-instance/#comments</comments>
		<pubDate>Wed, 07 Apr 2010 11:58:09 +0000</pubDate>
		<dc:creator>Stewart Schatz</dc:creator>
				<category><![CDATA[logs]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[sql server]]></category>

		<guid isPermaLink="false">http://sharepoint-geek.com/2010/04/07/shrink-all-log-files-within-a-ms-sql-instance/</guid>
		<description><![CDATA[This little SQL script is used to to shrink all the log files in a Microsoft SQL server instance.&#160; It uses the following function to get the job done: DBCC SHRINKFILE. declare @ssql nvarchar&#40;4000&#41;&#60;br /&#62; SET @ssql= '&#60;br /&#62; &#160; &#160; &#160; &#160; if ''?'' not in (''tempdb'',''master'',''model'',''msdb'') begin&#60;br /&#62; &#160; &#160; &#160; &#160; &#160; [...]]]></description>
			<content:encoded><![CDATA[<p>This little SQL script is used to to shrink all the log files in a Microsoft SQL server instance.&#160; It uses the following function to get the job done: DBCC SHRINKFILE.</p>
<pre>
<div class="codesnip-container" >
<div class="sql codesnip" style="font-family:monospace;">declare @ssql nvarchar<span class="br0">&#40;</span>4000<span class="br0">&#41;</span><span class="sy0">&lt;</span>br <span class="sy0">/&gt;</span>
<span class="kw1">SET</span> @ssql<span class="sy0">=</span> <span class="st0">'&lt;br /&gt;
&nbsp; &nbsp; &nbsp; &nbsp; if '</span><span class="st0">'?'</span><span class="st0">' not in ('</span><span class="st0">'tempdb'</span><span class="st0">','</span><span class="st0">'master'</span><span class="st0">','</span><span class="st0">'model'</span><span class="st0">','</span><span class="st0">'msdb'</span><span class="st0">') begin&lt;br /&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; use [?]&lt;br /&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; declare @tsql nvarchar(4000) set @tsql = '</span><span class="st0">''</span><span class="st0">'&lt;br /&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; declare @iLogFile int&lt;br /&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; declare LogFiles cursor for&lt;br /&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; select fileid from sysfiles where &nbsp;status &amp;amp; 0x40 = 0x40&lt;br /&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; open LogFiles&lt;br /&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fetch next from LogFiles into @iLogFile&lt;br /&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; while @@fetch_status = 0&lt;br /&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; begin&lt;br /&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; set @tsql = @tsql + '</span><span class="st0">'DBCC SHRINKFILE('</span><span class="st0">'+cast(@iLogFile as varchar(5))+'</span><span class="st0">', 1) '</span><span class="st0">'&lt;br /&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fetch next from LogFiles into @iLogFile&lt;br /&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end&lt;br /&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; set @tsql = @tsql + '</span><span class="st0">' BACKUP LOG [?] WITH TRUNCATE_ONLY '</span><span class="st0">' + @tsql&lt;br /&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; --print @tsql&lt;br /&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; exec(@tsql)&lt;br /&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; close LogFiles&lt;br /&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DEALLOCATE LogFiles&lt;br /&gt;
&nbsp; &nbsp; &nbsp; &nbsp; end'</span><span class="sy0">&lt;</span>br <span class="sy0">/&gt;</span>
&nbsp;exec sp_msforeachdb @ssql<span class="sy0">&lt;</span>br <span class="sy0">/&gt;</span></div>
</div>
</pre>
<p>via <a href="http://codesnippets.joyent.com/posts/show/665">CodeSnippets</a></p>

	Tags: <a href="http://sharepoint-geek.com/category/logs/" title="logs" rel="tag">logs</a>, <a href="http://sharepoint-geek.com/category/sql/" title="sql" rel="tag">sql</a>, <a href="http://sharepoint-geek.com/category/sql-server/" title="sql server" rel="tag">sql server</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li>No related posts.</li>
	</ul>


<p><a href="http://feedads.g.doubleclick.net/~a/qdg8lqawedJ-mqF8lzkU-tDje_w/0/da"><img src="http://feedads.g.doubleclick.net/~a/qdg8lqawedJ-mqF8lzkU-tDje_w/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/qdg8lqawedJ-mqF8lzkU-tDje_w/1/da"><img src="http://feedads.g.doubleclick.net/~a/qdg8lqawedJ-mqF8lzkU-tDje_w/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/SharepointGeek/~4/j0s4CMfVyi8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://sharepoint-geek.com/2010/04/07/shrink-all-log-files-within-a-ms-sql-instance/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://sharepoint-geek.com/2010/04/07/shrink-all-log-files-within-a-ms-sql-instance/</feedburner:origLink></item>
	</channel>
</rss><!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/


Served from: www.SHAREPOINT-GEEK.COM @ 2010-09-02 22:45:48 -->
