<?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>SharePoint Geek &#187; logs</title>
	<atom:link href="http://sharepoint-geek.com/category/logs/feed/" rel="self" type="application/rss+xml" />
	<link>http://sharepoint-geek.com</link>
	<description>SharePoint Tips &#38; Tricks</description>
	<lastBuildDate>Thu, 29 Jul 2010 19:19:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Shrink All Log Files Within A MS SQL Instance</title>
		<link>http://sharepoint-geek.com/2010/04/07/shrink-all-log-files-within-a-ms-sql-instance/</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</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(4000) set @ssql= ' if ''?'' not in (''tempdb'',''master'',''model'',''msdb'') begin use [?] declare @tsql nvarchar(4000) set @tsql = '''' declare @iLogFile int [...]]]></description>
			<content:encoded><![CDATA[<p>This little <a href="http://sharepoint-geek.com/tag/sql/" class="st_tag internal_tag" rel="tag" title="Posts tagged with sql">SQL</a> script is used to to shrink all the log files in a Microsoft <a href="http://sharepoint-geek.com/tag/sql/" class="st_tag internal_tag" rel="tag" title="Posts tagged with sql">SQL</a> server instance.&#160; It uses the following function to get the job done: DBCC SHRINKFILE.</p>
<div class="csharpcode">
<pre class="alt"><span class="kwrd">declare</span> @ssql nvarchar(4000)</pre>
<pre><span class="kwrd">set</span> @ssql= <span class="str">'</pre>
<pre class="alt">        if '</span><span class="str">'?'</span><span class="str">' not in ('</span><span class="str">'tempdb'</span><span class="str">','</span><span class="str">'master'</span><span class="str">','</span><span class="str">'model'</span><span class="str">','</span><span class="str">'msdb'</span><span class="str">') begin</pre>
<pre>        use [?]</pre>
<pre class="alt">        declare @tsql nvarchar(4000) set @tsql = '</span><span class="str">''</span><span class="str">'</pre>
<pre>        declare @iLogFile int</pre>
<pre class="alt">        declare LogFiles cursor for</pre>
<pre>        select fileid from sysfiles where  status &amp; 0x40 = 0x40</pre>
<pre class="alt">        open LogFiles</pre>
<pre>        fetch next from LogFiles into @iLogFile</pre>
<pre class="alt">        while @@fetch_status = 0</pre>
<pre>        begin</pre>
<pre class="alt">          set @tsql = @tsql + '</span><span class="str">'DBCC SHRINKFILE('</span><span class="str">'+cast(@iLogFile as varchar(5))+'</span><span class="str">', 1) '</span><span class="str">'</pre>
<pre>          fetch next from LogFiles into @iLogFile</pre>
<pre class="alt">        end</pre>
<pre>        set @tsql = @tsql + '</span><span class="str">' BACKUP LOG [?] WITH TRUNCATE_ONLY '</span><span class="str">' + @tsql</pre>
<pre class="alt">        --print @tsql</pre>
<pre>        exec(@tsql)</pre>
<pre class="alt">        close LogFiles</pre>
<pre>        DEALLOCATE LogFiles</pre>
<pre class="alt">        end'</span></pre>
<pre>&#160;</pre>
<pre class="alt">

<span class="kwrd">exec</span> sp_msforeachdb @ssql
</pre>
</div>
<style type="text/css">
<p>.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
overflow:scroll;
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }</style>
<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>

]]></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>
		</item>
		<item>
		<title>A potentially dangerous Request.Form value</title>
		<link>http://sharepoint-geek.com/2010/01/07/a-potentially-dangerous-request-form-value/</link>
		<comments>http://sharepoint-geek.com/2010/01/07/a-potentially-dangerous-request-form-value/#comments</comments>
		<pubDate>Thu, 07 Jan 2010 18:00:00 +0000</pubDate>
		<dc:creator>stewart</dc:creator>
				<category><![CDATA[MOSS]]></category>
		<category><![CDATA[errors]]></category>
		<category><![CDATA[logs]]></category>
		<category><![CDATA[sharepoint security]]></category>
		<category><![CDATA[web.config]]></category>
		<category><![CDATA[wss]]></category>
		<category><![CDATA[Sharepoint]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://sharepoint-geek.com/2010/01/07/a-potentially-dangerous-request-form-value/</guid>
		<description><![CDATA[We were having trouble adding a user to a site collection.&#160; Every time we hit the search button or clicked the check userid button the system would just sit there and spin. I added the following section of the web.config to resolve the issue. &#60;/compilation&#62; &#60;pages enableSessionState=&#34;false&#34; enableViewState=&#34;true&#34; enableViewStateMac=&#34;true&#34; validateRequest=&#34;false&#34; pageParserFilterType=&#34;Microsoft.SharePoint.ApplicationRuntime.SPPageParserFilter, Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c&#34; [...]]]></description>
			<content:encoded><![CDATA[<p>We were having trouble adding a user to a site collection.&#160; Every time we hit the search button or clicked the check userid button the system would just sit there and spin. I added the following section of the web.config to resolve the issue.</p>
<div style="border-right: #ccc 1px solid; border-top: #ccc 1px solid; overflow: auto; border-left: #ccc 1px solid; width: 100%; border-bottom: #ccc 1px solid; height: 200px">
<pre class="csharpcode"><span class="kwrd">&lt;/</span><span class="html">compilation</span><span class="kwrd">&gt;</span>
  <span class="kwrd">&lt;</span><span class="html">pages</span> <span class="attr">enableSessionState</span><span class="kwrd">=&quot;false&quot;</span> <span class="attr">enableViewState</span><span class="kwrd">=&quot;true&quot;</span> <span class="attr">enableViewStateMac</span><span class="kwrd">=&quot;true&quot;</span> <span class="attr">validateRequest</span><span class="kwrd">=&quot;false&quot;</span> <span class="attr">pageParserFilterType</span><span class="kwrd">=&quot;Microsoft.<a href="http://sharepoint-geek.com/tag/sharepoint/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Sharepoint">SharePoint</a>.ApplicationRuntime.SPPageParserFilter, Microsoft.<a href="http://sharepoint-geek.com/tag/sharepoint/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Sharepoint">SharePoint</a>, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c&quot;</span> <span class="attr">asyncTimeout</span><span class="kwrd">=&quot;7&quot;</span><span class="kwrd">&gt;</span>
    <span class="kwrd">&lt;</span><span class="html">namespaces</span><span class="kwrd">&gt;</span>
      <span class="kwrd">&lt;</span><span class="html">remove</span> <span class="attr">namespace</span><span class="kwrd">=&quot;System.Web.UI.WebControls.WebParts&quot;</span> <span class="kwrd">/&gt;</span>
    <span class="kwrd">&lt;/</span><span class="html">namespaces</span><span class="kwrd">&gt;</span>
    <span class="kwrd">&lt;</span><span class="html">tagMapping</span><span class="kwrd">&gt;</span>
      <span class="kwrd">&lt;</span><span class="html">add</span> <span class="attr">tagType</span><span class="kwrd">=&quot;System.Web.UI.WebControls.SqlDataSource, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&quot;</span> <span class="attr">mappedTagType</span><span class="kwrd">=&quot;Microsoft.<a href="http://sharepoint-geek.com/tag/sharepoint/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Sharepoint">SharePoint</a>.WebControls.SPSqlDataSource, Microsoft.<a href="http://sharepoint-geek.com/tag/sharepoint/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Sharepoint">SharePoint</a>, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c&quot;</span> <span class="kwrd">/&gt;</span>
    <span class="kwrd">&lt;/</span><span class="html">tagMapping</span><span class="kwrd">&gt;</span>
  <span class="kwrd">&lt;/</span><span class="html">pages</span><span class="kwrd">&gt;</span>
<span class="kwrd">&lt;</span><span class="html">siteMap</span> <span class="attr">defaultProvider</span><span class="kwrd">=&quot;SPSiteMapProvider&quot;</span> <span class="attr">enabled</span><span class="kwrd">=&quot;true&quot;</span><span class="kwrd">&gt;</span></pre>
<style type="text/css">
<p>.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }</style>
</div>
<p>The error that we were getting in the trace logs is similar to below.</p>
<div style="border-right: #ccc 1px solid; border-top: #ccc 1px solid; overflow: auto; border-left: #ccc 1px solid; width: 100%; border-bottom: #ccc 1px solid; height: 50px">
<pre class="csharpcode">Exception Type: System.Web.HttpRequestValidationException  Exception Message: A potentially dangerous Request.Form value was detected from the client (ctl00$PlaceHolderDialogBodySection$ctl04$OriginalEntities=&quot;&lt;Entities /&gt;&quot;).</pre>
<style type="text/css">
<p>.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }</style>
</div>
<p>via <a href="http://blog.solien.com/archive/2009/10/27/sharepoint-a-potentially-dangerous-request.form-value-was-detected-from-the.aspx" target="_blank">Solien Technology</a></p>

	Tags: <a href="http://sharepoint-geek.com/category/errors/" title="errors" rel="tag">errors</a>, <a href="http://sharepoint-geek.com/category/logs/" title="logs" rel="tag">logs</a>, <a href="http://sharepoint-geek.com/category/moss/" title="MOSS" rel="tag">MOSS</a>, <a href="http://sharepoint-geek.com/tag/sharepoint/" title="Sharepoint" rel="tag">Sharepoint</a>, <a href="http://sharepoint-geek.com/category/sharepoint-security/" title="sharepoint security" rel="tag">sharepoint security</a>, <a href="http://sharepoint-geek.com/tag/sql/" title="sql" rel="tag">sql</a>, <a href="http://sharepoint-geek.com/category/web-config/" title="web.config" rel="tag">web.config</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><a href="http://sharepoint-geek.com/2009/11/05/sharepoint-alerts-not-working/" title="SharePoint Alerts Not Working (November 5, 2009)">SharePoint Alerts Not Working</a> (5)</li>
	<li><a href="http://sharepoint-geek.com/2009/10/07/wssremovefeaturefromsite-bat-file/" title="WssRemoveFeatureFromSite + BAT File (October 7, 2009)">WssRemoveFeatureFromSite + BAT File</a> (0)</li>
	<li><a href="http://sharepoint-geek.com/2009/10/07/wss-v3-moss-2007-features/" title="WSS v3 &amp; MOSS 2007 Features (October 7, 2009)">WSS v3 &amp; MOSS 2007 Features</a> (0)</li>
	<li><a href="http://sharepoint-geek.com/2009/11/06/unable-to-enable-office-sharepoint-server-publishing/" title="Unable To Enable Office SharePoint Server Publishing (November 6, 2009)">Unable To Enable Office SharePoint Server Publishing</a> (0)</li>
	<li><a href="http://sharepoint-geek.com/2009/05/21/unable-to-activate-office-sharepoint-server-publishing-infrastructure/" title="Unable To Activate Office SharePoint Server Publishing Infrastructure (May 21, 2009)">Unable To Activate Office SharePoint Server Publishing Infrastructure</a> (0)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://sharepoint-geek.com/2010/01/07/a-potentially-dangerous-request-form-value/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Shrink SQL Transaction Logs</title>
		<link>http://sharepoint-geek.com/2009/12/28/shrink-sql-transaction-logs/</link>
		<comments>http://sharepoint-geek.com/2009/12/28/shrink-sql-transaction-logs/#comments</comments>
		<pubDate>Mon, 28 Dec 2009 23:04:00 +0000</pubDate>
		<dc:creator>stewart</dc:creator>
				<category><![CDATA[logs]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[sql server]]></category>
		<category><![CDATA[transaction logs]]></category>

		<guid isPermaLink="false">http://sharepoint-geek.com/2009/12/28/shrink-sql-transaction-logs/</guid>
		<description><![CDATA[Here is the t-sql statement used to shrink the SQL transaction logs: Use &#60;DatabaseName&#62; Go Backup Log &#60;DatabaseName&#62; With Truncate_Only DBCC SHRINKFILE(&#60;TransactionLogName&#62;, 1) Go .csharpcode, .csharpcode pre { font-size: small; color: black; font-family: consolas, "Courier New", courier, monospace; background-color: #ffffff; /*white-space: pre;*/ } .csharpcode pre { margin: 0em; } .csharpcode .rem { color: #008000; } [...]]]></description>
			<content:encoded><![CDATA[<p>Here is the t-<a href="http://sharepoint-geek.com/tag/sql/" class="st_tag internal_tag" rel="tag" title="Posts tagged with sql">sql</a> statement used to shrink the <a href="http://sharepoint-geek.com/tag/sql/" class="st_tag internal_tag" rel="tag" title="Posts tagged with sql">SQL</a> transaction logs:</p>
<pre class="csharpcode"><span class="kwrd">Use</span> &lt;DatabaseName&gt;
<span class="kwrd">Go</span>
<span class="kwrd">Backup</span> Log &lt;DatabaseName&gt; <span class="kwrd">With</span> Truncate_Only
<span class="kwrd">DBCC</span> SHRINKFILE(&lt;TransactionLogName&gt;, 1)
<span class="kwrd">Go</span></pre>
<style type="text/css">
.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }</style>

	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/tag/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/transaction-logs/" title="transaction logs" rel="tag">transaction logs</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://sharepoint-geek.com/2009/11/05/sharepoint-alerts-not-working/" title="SharePoint Alerts Not Working (November 5, 2009)">SharePoint Alerts Not Working</a> (5)</li>
	<li><a href="http://sharepoint-geek.com/2009/11/18/backup-all-sql-server-databases/" title="Backup All SQL Server Databases (November 18, 2009)">Backup All SQL Server Databases</a> (0)</li>
	<li><a href="http://sharepoint-geek.com/2010/01/07/a-potentially-dangerous-request-form-value/" title="A potentially dangerous Request.Form value (January 7, 2010)">A potentially dangerous Request.Form value</a> (0)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://sharepoint-geek.com/2009/12/28/shrink-sql-transaction-logs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
