<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>David&#039;s Blog</title>
	<atom:link href="http://dgj103.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://dgj103.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Thu, 16 Jun 2011 14:53:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='dgj103.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>David&#039;s Blog</title>
		<link>http://dgj103.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://dgj103.wordpress.com/osd.xml" title="David&#039;s Blog" />
	<atom:link rel='hub' href='http://dgj103.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Some disk discoveries</title>
		<link>http://dgj103.wordpress.com/2011/01/05/some-disk-discoveries/</link>
		<comments>http://dgj103.wordpress.com/2011/01/05/some-disk-discoveries/#comments</comments>
		<pubDate>Wed, 05 Jan 2011 13:58:36 +0000</pubDate>
		<dc:creator>dgj103</dc:creator>
				<category><![CDATA[Performance]]></category>
		<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://dgj103.wordpress.com/?p=89</guid>
		<description><![CDATA[I&#8217;ve been using SQLQueryStress to benchmark a test query against a VM SharePoint database. I used the Docs View and selected the top 101 where size &#62; 100 SELECT TOP 101 FROM Docs WHERE Size &#62; 100 The original time taken was 23 seconds The disk was 64% fragmented and after defragging, the query time <a href="http://dgj103.wordpress.com/2011/01/05/some-disk-discoveries/" class="excerpt-more-link">[&#8230;]</a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dgj103.wordpress.com&amp;blog=9615116&amp;post=89&amp;subd=dgj103&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been using SQLQueryStress to benchmark a test query against a VM SharePoint database. I used the Docs View and selected the top 101 where size &gt; 100</p>
<pre>SELECT TOP 101 FROM Docs WHERE Size &gt; 100</pre>
<p><strong>The original time taken was 23 seconds</strong></p>
<p>The disk was 64% fragmented and after defragging, the query time was 9 seconds. That&#8217;s a 60% improvement without touching the database.</p>
<p>So, onto the database and all the indexes are defragged and updated. This took the time down to 8 seconds (12% quicker)</p>
<h2>Now for a couple of experiments.</h2>
<p><strong>SpaceSniffer</strong></p>
<p>SpaceSniffer running on the parent &#8211; 3 minutes</p>
<p>SpaceSniffer completed and looking for changes on parent &#8211; 9 seconds</p>
<p><em>SpaceSniffer doesn&#8217;t affect the performance of the SQL after it finished scanning but during the scan the performance was terrible.</em></p>
<p><strong>Compressing files on Guest</strong></p>
<p>I&#8217;m compressing IIS log files from the last year and running the same query at the same time. This expanded the query time to 8 minutes.</p>
<p><strong>SQL Service Pack 4</strong></p>
<p>First thing, it&#8217;s hard to find and second is there is no update for SQL Express (currently). I will have to reinstall SQL Express to do the update.</p>
<p>Can&#8217;t install service pack 4</p>
<p><strong>Synchronizing VM with the undo file</strong></p>
<p>The VM has been running since November and has a 23Gb undo file. I&#8217;ll remove this and see if it makes any difference.</p>
<p>It did. Took the total load time down to 4 seconds. from 23 at the start.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dgj103.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dgj103.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dgj103.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dgj103.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dgj103.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dgj103.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dgj103.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dgj103.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dgj103.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dgj103.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dgj103.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dgj103.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dgj103.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dgj103.wordpress.com/89/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dgj103.wordpress.com&amp;blog=9615116&amp;post=89&amp;subd=dgj103&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dgj103.wordpress.com/2011/01/05/some-disk-discoveries/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f92eb5381e5c6be1b26555efd918b1ac?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dgj103</media:title>
		</media:content>
	</item>
		<item>
		<title>Wednesday</title>
		<link>http://dgj103.wordpress.com/2010/09/08/wednesday/</link>
		<comments>http://dgj103.wordpress.com/2010/09/08/wednesday/#comments</comments>
		<pubDate>Wed, 08 Sep 2010 09:11:36 +0000</pubDate>
		<dc:creator>dgj103</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://dgj103.wordpress.com/?p=85</guid>
		<description><![CDATA[Moving Sharepoint config database location http://sharepointsherpa.com/2008/04/18/sharepoint-2007-move-content-and-configuration-databases/ The SharePoint Sherpa blog has the outline of how to run this task; **** BACKUP FIRST AND PRACTICE THIS IN A TEST ENVIRONMENT **** stsadm -o deleteconfigdb stsadm –o setconfigdb -connect –databaseserver target_SQL_server -databasename databasename -farmuser your_farm_account -farmpassword your_farm_password But&#8230;.. this didn&#8217;t work for me. I then fixed the <a href="http://dgj103.wordpress.com/2010/09/08/wednesday/" class="excerpt-more-link">[&#8230;]</a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dgj103.wordpress.com&amp;blog=9615116&amp;post=85&amp;subd=dgj103&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Moving Sharepoint config database location</p>
<p><a href="http://sharepointsherpa.com/2008/04/18/sharepoint-2007-move-content-and-configuration-databases/">http://sharepointsherpa.com/2008/04/18/sharepoint-2007-move-content-and-configuration-databases/</a></p>
<p>The SharePoint Sherpa blog has the outline of how to run this task;</p>
<p>**** BACKUP FIRST AND PRACTICE THIS IN A TEST ENVIRONMENT ****</p>
<p><span style="color:#888888;">stsadm -o deleteconfigdb<br />
stsadm –o setconfigdb -connect –databaseserver </span><em><span style="color:#888888;">target_SQL_server </span></em><span style="color:#888888;">-databasename </span><em><span style="color:#888888;">databasename</span></em><span style="color:#888888;"> -farmuser </span><em><span style="color:#888888;">your_farm_account</span></em><span style="color:#888888;"> -farmpassword </span><em><span style="color:#888888;">your_farm_password</span></em></p>
<p>But&#8230;.. this didn&#8217;t work for me. I then fixed the firewall on SQL Server 2008 R2 and it worked. Yay</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dgj103.wordpress.com/85/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dgj103.wordpress.com/85/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dgj103.wordpress.com/85/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dgj103.wordpress.com/85/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dgj103.wordpress.com/85/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dgj103.wordpress.com/85/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dgj103.wordpress.com/85/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dgj103.wordpress.com/85/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dgj103.wordpress.com/85/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dgj103.wordpress.com/85/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dgj103.wordpress.com/85/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dgj103.wordpress.com/85/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dgj103.wordpress.com/85/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dgj103.wordpress.com/85/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dgj103.wordpress.com&amp;blog=9615116&amp;post=85&amp;subd=dgj103&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dgj103.wordpress.com/2010/09/08/wednesday/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f92eb5381e5c6be1b26555efd918b1ac?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dgj103</media:title>
		</media:content>
	</item>
		<item>
		<title>Tuesday</title>
		<link>http://dgj103.wordpress.com/2010/09/07/tuesday-2/</link>
		<comments>http://dgj103.wordpress.com/2010/09/07/tuesday-2/#comments</comments>
		<pubDate>Tue, 07 Sep 2010 13:21:36 +0000</pubDate>
		<dc:creator>dgj103</dc:creator>
				<category><![CDATA[Reporting Services]]></category>
		<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://dgj103.wordpress.com/?p=81</guid>
		<description><![CDATA[Litespeed has an error: Could not find xpsls.dll. This is the dll for extended stored procedures. Just uninstall and reinstall to fix it. The device seems to have been removed when I upgraded to R2. Dashboards New dashboard is required for a project and an existing one has broken. Both are critical, both are important, <a href="http://dgj103.wordpress.com/2010/09/07/tuesday-2/" class="excerpt-more-link">[&#8230;]</a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dgj103.wordpress.com&amp;blog=9615116&amp;post=81&amp;subd=dgj103&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Litespeed has an error: Could not find xpsls.dll. This is the dll for extended stored procedures. Just uninstall and reinstall to fix it. The device seems to have been removed when I upgraded to R2.</p>
<p>Dashboards</p>
<p>New dashboard is required for a project and an existing one has broken. Both are critical, both are important, both need to be working. There is one of me.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dgj103.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dgj103.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dgj103.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dgj103.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dgj103.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dgj103.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dgj103.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dgj103.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dgj103.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dgj103.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dgj103.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dgj103.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dgj103.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dgj103.wordpress.com/81/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dgj103.wordpress.com&amp;blog=9615116&amp;post=81&amp;subd=dgj103&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dgj103.wordpress.com/2010/09/07/tuesday-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f92eb5381e5c6be1b26555efd918b1ac?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dgj103</media:title>
		</media:content>
	</item>
		<item>
		<title>Friday</title>
		<link>http://dgj103.wordpress.com/2010/09/03/friday/</link>
		<comments>http://dgj103.wordpress.com/2010/09/03/friday/#comments</comments>
		<pubDate>Fri, 03 Sep 2010 14:21:30 +0000</pubDate>
		<dc:creator>dgj103</dc:creator>
				<category><![CDATA[Reporting Services]]></category>
		<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://dgj103.wordpress.com/?p=73</guid>
		<description><![CDATA[Monty has three bells now. Internet access has returned after I checked the proxy settings in internet explorer to discover my computer was set to be it&#8217;s own proxy on port 81. Strange. Dynamic Hyperlinks in Reporting Services =&#8221;javascript:void(&#8216;window.open(https://intranet/sites/Apps/IR/Lists/Injury/DispForm.aspx?ID=&#8221; + CSTR(Fields!ID.Value) &#38; &#8220;&#8216;));&#8221; This will open the list based on the value in the ID field. <a href="http://dgj103.wordpress.com/2010/09/03/friday/" class="excerpt-more-link">[&#8230;]</a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dgj103.wordpress.com&amp;blog=9615116&amp;post=73&amp;subd=dgj103&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Monty has three bells now.</p>
<p>Internet access has returned after I checked the proxy settings in internet explorer to discover my computer was set to be it&#8217;s own proxy on port 81. Strange.</p>
<p>Dynamic Hyperlinks in Reporting Services</p>
<p>=&#8221;javascript:void(&#8216;window.open(https://intranet/sites/Apps/IR/Lists/Injury/DispForm.aspx?ID=&#8221; + CSTR(Fields!ID.Value) &amp; &#8220;&#8216;));&#8221;</p>
<p>This will open the list based on the value in the ID field. ID has to be converted to a string otherwise it&#8217;ll give a compile warning but will still load.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dgj103.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dgj103.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dgj103.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dgj103.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dgj103.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dgj103.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dgj103.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dgj103.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dgj103.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dgj103.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dgj103.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dgj103.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dgj103.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dgj103.wordpress.com/73/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dgj103.wordpress.com&amp;blog=9615116&amp;post=73&amp;subd=dgj103&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dgj103.wordpress.com/2010/09/03/friday/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f92eb5381e5c6be1b26555efd918b1ac?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dgj103</media:title>
		</media:content>
	</item>
		<item>
		<title>Tuesday</title>
		<link>http://dgj103.wordpress.com/2010/08/31/tuesday/</link>
		<comments>http://dgj103.wordpress.com/2010/08/31/tuesday/#comments</comments>
		<pubDate>Tue, 31 Aug 2010 08:27:46 +0000</pubDate>
		<dc:creator>dgj103</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://dgj103.wordpress.com/?p=68</guid>
		<description><![CDATA[Monty now has five bells attached to his collar. Great for scaring birds, not so great for getting to sleep. Whenever he moves, anywhere in the house, you can hear him. I still have no internet access in Windows 7 thanks to Bonjour from Apple (I think). Sharepoint is running SP2 and seems to be <a href="http://dgj103.wordpress.com/2010/08/31/tuesday/" class="excerpt-more-link">[&#8230;]</a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dgj103.wordpress.com&amp;blog=9615116&amp;post=68&amp;subd=dgj103&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Monty now has five bells attached to his collar. Great for scaring birds, not so great for getting to sleep. Whenever he moves, anywhere in the house, you can hear him.</p>
<p>I still have no internet access in Windows 7 thanks to Bonjour from Apple (I think).</p>
<p>Sharepoint is running SP2 and seems to be happy. I can&#8217;t connect to it because I have no internet access.</p>
<p>The high CPU issue occurred again on Monday but it was a Bank Holiday so I know now the issue is automated and nothing to do with normal users. Still don&#8217;t know where to start.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dgj103.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dgj103.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dgj103.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dgj103.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dgj103.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dgj103.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dgj103.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dgj103.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dgj103.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dgj103.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dgj103.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dgj103.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dgj103.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dgj103.wordpress.com/68/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dgj103.wordpress.com&amp;blog=9615116&amp;post=68&amp;subd=dgj103&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dgj103.wordpress.com/2010/08/31/tuesday/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f92eb5381e5c6be1b26555efd918b1ac?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dgj103</media:title>
		</media:content>
	</item>
		<item>
		<title>Reviewing Spotlight Alerts</title>
		<link>http://dgj103.wordpress.com/2010/07/22/reviewing-spotlight-alerts/</link>
		<comments>http://dgj103.wordpress.com/2010/07/22/reviewing-spotlight-alerts/#comments</comments>
		<pubDate>Thu, 22 Jul 2010 09:59:36 +0000</pubDate>
		<dc:creator>dgj103</dc:creator>
				<category><![CDATA[Powershell]]></category>
		<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://dgj103.wordpress.com/2010/07/22/reviewing-spotlight-alerts/</guid>
		<description><![CDATA[Quest&#8217;s Spotlight on SQL Server is a tool for monitoring SQL Server and Windows Servers. One of the features is the automatic sending of emails whenever various alert conditions are met and sending them to a distribution group or just me. Some days I receive hundreds of them and put them all in one folder <a href="http://dgj103.wordpress.com/2010/07/22/reviewing-spotlight-alerts/" class="excerpt-more-link">[&#8230;]</a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dgj103.wordpress.com&amp;blog=9615116&amp;post=63&amp;subd=dgj103&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Quest&#8217;s Spotlight on SQL Server is a tool for monitoring SQL Server and Windows Servers. One of the features is the automatic sending of emails whenever various alert conditions are met and sending them to a distribution group or just me. Some days I receive hundreds of them and put them all in one folder with the intention of looking through and finding patterns. Of course, I don&#8217;t get around to doing this so I wrote this Powershell script to help;</p>
<p>Powershell script to visit a folder in Outlook, parse out the relevant columns and write it to a CSV file.</p>
<p><code></p>
<p style="background:#eeece1;"><span style="font-family:Courier New;font-size:10pt;"><span style="color:green;">#Set up the connection to Outlook</span><span style="color:purple;"><br />
</span></span><br />
<span style="font-family:Courier New;font-size:10pt;"><span style="color:purple;">$olFolderInbox</span><span style="color:purple;"> </span><span style="color:red;">=</span><span style="color:black;"> 6<br />
</span></span><br />
<span style="font-family:Courier New;font-size:10pt;"><span style="color:purple;">$outlook </span><span style="color:red;">= </span><span style="color:cadetblue;"><strong>new-object</strong></span><span style="color:cadetblue;"><em>-com<span style="color:#000000;"> </span></em></span><span style="color:maroon;">outlook.application</span><span style="color:black;">;<br />
</span></span><br />
<span style="font-family:Courier New;font-size:10pt;"><span style="color:purple;">$ns</span><span style="color:purple;"> </span><span style="color:red;">=</span><span style="color:red;"> </span><span style="color:purple;">$outlook</span><span style="color:black;">.GetNameSpace(</span><span style="color:maroon;">"MAPI"</span><span style="color:black;">);<br />
</span></span><br />
<span style="font-family:Courier New;font-size:10pt;"><span style="color:purple;">$inbox</span><span style="color:purple;"> </span><span style="color:red;">=</span><span style="color:red;"> </span><span style="color:purple;">$ns</span><span style="color:black;">.GetDefaultFolder(</span><span style="color:purple;">$olFolderInbox</span><span style="color:black;">)<br />
</span></span><br />
<span style="font-family:Courier New;font-size:10pt;"><span style="color:green;">#Set the path to the Spotlight Folder</span><span style="color:black;"><br />
</span></span><br />
<span style="font-family:Courier New;font-size:10pt;"><span style="color:purple;">$msgs</span><span style="color:purple;"> </span><span style="color:red;">=</span><span style="color:red;"> </span><span style="color:purple;">$inbox</span><span style="color:black;">.Folders.Item(</span><span style="color:maroon;">"Automatic Messages"</span><span style="color:black;">).Folders.Item(</span><span style="color:maroon;">"From Me"</span><span style="color:black;">).Folders.Item(</span><span style="color:maroon;">"Spotlight"</span><span style="color:black;">)<br />
</span></span><br />
<span style="font-family:Courier New;font-size:10pt;"><span style="color:purple;">$counter</span><span style="color:purple;"> </span><span style="color:red;">=</span><span style="color:black;"> 1<br />
</span></span><br />
<span style="font-family:Courier New;font-size:10pt;"><span style="color:purple;">$items</span><span style="color:purple;"> </span><span style="color:red;">=</span><span style="color:red;"> </span><span style="color:purple;">$msgs</span><span style="color:black;">.items<br />
</span></span><br />
<span style="font-family:Courier New;font-size:10pt;"><span style="color:green;">#Go through each email and process based on the rules</span><span style="color:black;"><br />
</span></span><br />
<span style="font-family:Courier New;font-size:10pt;"><span style="color:blue;">foreach</span><span style="color:black;"> (</span><span style="color:purple;">$item</span><span style="color:purple;"> </span><span style="color:blue;">in</span><span style="color:blue;"> </span><span style="color:purple;">$items</span><span style="color:black;">) </span></span><span style="font-family:'Courier New';">{</span><br />
<span style="font-family:Courier New;font-size:10pt;"><span style="color:purple;"> $status</span><span style="color:purple;"> </span><span style="color:red;">=</span><span style="color:red;"> </span><span style="color:maroon;">"Processing item {0} of {1}"</span><span style="color:maroon;"> </span><span style="color:red;">-f</span><span style="color:red;"> </span><span style="color:purple;">$counter</span><span style="color:black;">,</span><span style="color:purple;">$items</span><span style="color:black;">.Count<br />
</span></span><br />
<span style="font-family:Courier New;font-size:10pt;"><span style="color:cadetblue;"><strong> Write-Progress<span style="color:#000000;"> </span></strong></span><span style="color:maroon;">"Processing items"</span><span style="color:maroon;"> </span><span style="color:purple;">$status</span><span style="color:purple;"> </span><span style="color:cadetblue;"><em>-PercentComplete</em></span><span style="color:black;"> (</span><span style="color:purple;">$counter</span><span style="color:purple;"> </span><span style="color:red;">/</span><span style="color:red;"> </span><span style="color:purple;">$items</span><span style="color:black;">.Count </span><span style="color:red;">*</span><span style="color:black;"> 100)</span></span><br />
<span style="font-family:Courier New;font-size:10pt;"><span style="color:purple;"> $b</span><span style="color:purple;"> </span><span style="color:red;">=</span><span style="color:red;"> </span><span style="color:purple;">$item</span><span style="color:black;">.Body<br />
</span></span><br />
<span style="font-family:Courier New;font-size:10pt;"><span style="color:green;"> #These two lines remove the new line carriage return</span><span style="color:black;"><br />
</span></span><br />
<span style="font-family:Courier New;font-size:10pt;"><span style="color:purple;"> $b</span><span style="color:purple;"> </span><span style="color:red;">=</span><span style="color:red;"> </span><span style="color:purple;">$b</span><span style="color:black;">.Replace(</span><span style="color:maroon;">'<br />
</span></span><br />
<span style="font-family:Courier New;font-size:10pt;"><span style="color:maroon;"> '</span><span style="color:black;">,</span><span style="color:maroon;">','</span><span style="color:black;">)<br />
</span></span><br />
<span style="font-family:Courier New;font-size:10pt;"><span style="color:black;"> </span><span style="color:green;">#Tidy up the empty columns</span><span style="color:black;"><br />
</span></span><br />
<span style="font-family:Courier New;font-size:10pt;"><span style="color:purple;"> $b</span><span style="color:purple;"> </span><span style="color:red;">=</span><span style="color:red;"> </span><span style="color:purple;">$b</span><span style="color:black;">.Replace(</span><span style="color:maroon;">', '</span><span style="color:black;">,</span><span style="color:maroon;">','</span><span style="color:black;">)<br />
</span></span><br />
<span style="font-family:Courier New;font-size:10pt;"><span style="color:purple;"> $b</span><span style="color:purple;"> </span><span style="color:red;">=</span><span style="color:red;"> </span><span style="color:purple;">$b</span><span style="color:black;">.Replace(</span><span style="color:maroon;">',,'</span><span style="color:black;">,</span><span style="color:maroon;">','</span><span style="color:black;">)<br />
</span></span><br />
<span style="font-family:Courier New;font-size:10pt;"><span style="color:purple;"> $b</span><span style="color:purple;"> </span><span style="color:red;">=</span><span style="color:red;"> </span><span style="color:purple;">$b</span><span style="color:black;">.Replace(</span><span style="color:maroon;">',,,'</span><span style="color:black;">,</span><span style="color:maroon;">','</span><span style="color:black;">)<br />
</span></span><br />
<span style="font-family:Courier New;font-size:10pt;"><span style="color:purple;"> $b</span><span style="color:purple;"> </span><span style="color:red;">=</span><span style="color:red;"> </span><span style="color:purple;">$b</span><span style="color:black;">.Replace(</span><span style="color:maroon;">',,'</span><span style="color:black;">,</span><span style="color:maroon;">','</span><span style="color:black;">)<br />
</span></span><br />
<span style="font-family:Courier New;font-size:10pt;"><span style="color:black;"> </span><span style="color:green;">#These will contain the events</span><span style="color:black;"><br />
</span></span><br />
<span style="font-family:Courier New;font-size:10pt;"><span style="color:purple;"> $b</span><span style="color:purple;"> </span><span style="color:red;">=</span><span style="color:red;"> </span><span style="color:purple;">$b</span><span style="color:black;">.Replace(</span><span style="color:maroon;">'Connection: '</span><span style="color:black;">,</span><span style="color:maroon;">''</span><span style="color:black;">)<br />
</span></span><br />
<span style="font-family:Courier New;font-size:10pt;"><span style="color:purple;"> $b</span><span style="color:purple;"> </span><span style="color:red;">=</span><span style="color:red;"> </span><span style="color:purple;">$b</span><span style="color:black;">.Replace(</span><span style="color:maroon;">'Time: '</span><span style="color:black;">,</span><span style="color:maroon;">''</span><span style="color:black;">)<br />
</span></span><br />
<span style="font-family:Courier New;font-size:10pt;"><span style="color:purple;"> $b</span><span style="color:purple;"> </span><span style="color:red;">=</span><span style="color:red;"> </span><span style="color:purple;">$b</span><span style="color:black;">.Replace(</span><span style="color:maroon;">'Severity: '</span><span style="color:black;">,</span><span style="color:maroon;">''</span><span style="color:black;">)<br />
</span></span><br />
<span style="font-family:Courier New;font-size:10pt;"><span style="color:green;"> #The emails come from my account so I need to remove my signature from the result</span><span style="color:black;"><br />
</span></span><br />
<span style="font-family:Courier New;font-size:10pt;"><span style="color:purple;"> $b</span><span style="color:purple;"> </span><span style="color:red;">=</span><span style="color:red;"> </span><span style="color:purple;">$b</span><span style="color:black;">.Replace(</span><span style="color:maroon;">',&lt;My Signature from outlook&gt;,'</span><span style="color:black;">,</span><span style="color:maroon;">''</span><span style="color:black;">)<br />
</span></span><br />
<span style="font-family:Courier New;font-size:10pt;"><span style="color:purple;"> $b</span><span style="color:black;"> | </span><span style="color:cadetblue;"><strong>Out-File<span style="color:#000000;"> </span></strong></span><span style="color:maroon;">"C:\PS\spotlight emails.csv"</span><span style="color:maroon;"> </span><span style="color:cadetblue;"><em>-Append</em></span><span style="color:black;"><br />
</span></span><br />
<span style="font-family:Courier New;font-size:10pt;"><span style="color:purple;"> $counter</span><span style="color:red;">++</span><span style="color:black;"><br />
</span></span><br />
<span style="color:black;font-family:Courier New;font-size:10pt;">}<br />
</span></p>
<p></code></p>
<p>The CSV can then be altered in Excel using Data &gt; Text to Columns and setting a comma as the delimiter. The results can appended to an existing Excel log of processed emails for long term pattern analysis.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dgj103.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dgj103.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dgj103.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dgj103.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dgj103.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dgj103.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dgj103.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dgj103.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dgj103.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dgj103.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dgj103.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dgj103.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dgj103.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dgj103.wordpress.com/63/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dgj103.wordpress.com&amp;blog=9615116&amp;post=63&amp;subd=dgj103&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dgj103.wordpress.com/2010/07/22/reviewing-spotlight-alerts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f92eb5381e5c6be1b26555efd918b1ac?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dgj103</media:title>
		</media:content>
	</item>
		<item>
		<title>Unusually high CPU every Sunday afternoon</title>
		<link>http://dgj103.wordpress.com/2010/05/03/unusually-high-cpu-every-sunday-afternoon/</link>
		<comments>http://dgj103.wordpress.com/2010/05/03/unusually-high-cpu-every-sunday-afternoon/#comments</comments>
		<pubDate>Mon, 03 May 2010 20:36:07 +0000</pubDate>
		<dc:creator>dgj103</dc:creator>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Performance]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://dgj103.wordpress.com/?p=60</guid>
		<description><![CDATA[Why? Actually it&#8217;s now Tuesday. Seems to be every 6 and a half days so the problem moves through the week over the months.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dgj103.wordpress.com&amp;blog=9615116&amp;post=60&amp;subd=dgj103&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Why?</p>
<p>Actually it&#8217;s now Tuesday. Seems to be every 6 and a half days so the problem moves through the week over the months.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dgj103.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dgj103.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dgj103.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dgj103.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dgj103.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dgj103.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dgj103.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dgj103.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dgj103.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dgj103.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dgj103.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dgj103.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dgj103.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dgj103.wordpress.com/60/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dgj103.wordpress.com&amp;blog=9615116&amp;post=60&amp;subd=dgj103&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dgj103.wordpress.com/2010/05/03/unusually-high-cpu-every-sunday-afternoon/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f92eb5381e5c6be1b26555efd918b1ac?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dgj103</media:title>
		</media:content>
	</item>
		<item>
		<title>Steady start</title>
		<link>http://dgj103.wordpress.com/2010/02/01/steady-start/</link>
		<comments>http://dgj103.wordpress.com/2010/02/01/steady-start/#comments</comments>
		<pubDate>Mon, 01 Feb 2010 12:29:17 +0000</pubDate>
		<dc:creator>dgj103</dc:creator>
				<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://dgj103.wordpress.com/?p=55</guid>
		<description><![CDATA[It&#8217;s February, what have I achieved? I can create simple SQL Server 2008 Reports I have a system sending perfmon data to a BLG file, relogging it to CSV then importing it into a datamart<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dgj103.wordpress.com&amp;blog=9615116&amp;post=55&amp;subd=dgj103&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s February, what have I achieved?</p>
<p>I can create simple SQL Server 2008 Reports</p>
<p>I have a system sending perfmon data to a BLG file, relogging it to CSV then importing it into a datamart</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dgj103.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dgj103.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dgj103.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dgj103.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dgj103.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dgj103.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dgj103.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dgj103.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dgj103.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dgj103.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dgj103.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dgj103.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dgj103.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dgj103.wordpress.com/55/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dgj103.wordpress.com&amp;blog=9615116&amp;post=55&amp;subd=dgj103&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dgj103.wordpress.com/2010/02/01/steady-start/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f92eb5381e5c6be1b26555efd918b1ac?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dgj103</media:title>
		</media:content>
	</item>
		<item>
		<title>Deleted data</title>
		<link>http://dgj103.wordpress.com/2009/12/07/deleted-data/</link>
		<comments>http://dgj103.wordpress.com/2009/12/07/deleted-data/#comments</comments>
		<pubDate>Mon, 07 Dec 2009 10:20:31 +0000</pubDate>
		<dc:creator>dgj103</dc:creator>
				<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://dgj103.wordpress.com/?p=50</guid>
		<description><![CDATA[A large number of rows have been deleted from the server. How can I find who did it? I have looked at the default trace but this doesn&#8217;t show row deletions just object deletions. Update &#8211; I just put the data back. I know it happened between 02/12/2009 and 03/12/2009 but other than no info. <a href="http://dgj103.wordpress.com/2009/12/07/deleted-data/" class="excerpt-more-link">[&#8230;]</a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dgj103.wordpress.com&amp;blog=9615116&amp;post=50&amp;subd=dgj103&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>A large number of rows have been deleted from the server. How can I find who did it?</p>
<p>I have looked at the default trace but this doesn&#8217;t show row deletions just object deletions.</p>
<p>Update &#8211; I just put the data back. I know it happened between 02/12/2009 and 03/12/2009 but other than no info.</p>
<p>I&#8217;m now running a regular script to give me the row counts of the tables in the database and comparing them against the last run. If there has been a large change I can see before it&#8217;s too late.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dgj103.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dgj103.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dgj103.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dgj103.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dgj103.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dgj103.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dgj103.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dgj103.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dgj103.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dgj103.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dgj103.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dgj103.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dgj103.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dgj103.wordpress.com/50/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dgj103.wordpress.com&amp;blog=9615116&amp;post=50&amp;subd=dgj103&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dgj103.wordpress.com/2009/12/07/deleted-data/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f92eb5381e5c6be1b26555efd918b1ac?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dgj103</media:title>
		</media:content>
	</item>
		<item>
		<title>Database cannot be opened</title>
		<link>http://dgj103.wordpress.com/2009/11/26/47/</link>
		<comments>http://dgj103.wordpress.com/2009/11/26/47/#comments</comments>
		<pubDate>Thu, 26 Nov 2009 11:10:10 +0000</pubDate>
		<dc:creator>dgj103</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://dgj103.wordpress.com/?p=47</guid>
		<description><![CDATA[﻿ Database &#8216;[name]&#8216; cannot be opened due to inaccessible files or insufficient memory or disk space. I had this error on two databases on a dedicated SQL Server with enough memory, disk space and no faults. The obvious thing it to check the error log but this only showed SQL detected an issue and ran <a href="http://dgj103.wordpress.com/2009/11/26/47/" class="excerpt-more-link">[&#8230;]</a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dgj103.wordpress.com&amp;blog=9615116&amp;post=47&amp;subd=dgj103&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>﻿<a href="http://dgj103.files.wordpress.com/2009/11/server-error.jpg"><img class="alignleft size-medium wp-image-46" title="SQL Error" src="http://dgj103.files.wordpress.com/2009/11/server-error.jpg?w=300&#038;h=116" alt="SQL Error" width="300" height="116" /></a> Database &#8216;[name]&#8216; cannot be opened due to inaccessible files or insufficient memory or disk space.</p>
<p>I had this error on two databases on a dedicated SQL Server with enough memory, disk space and no faults. The obvious thing it to check the error log but this only showed SQL detected an issue and ran DBCC Checkdisk several times. Stuck at this point, I connected to the server and tried renaming the database file by appending a 1 to the end of the filename. It allowed me to do this to the suspect database but no to the others telling me the disk had a fault with the file.</p>
<p>select databasepropertyex(&#8216;[Name]&#8216;,&#8217;STATUS&#8217;) returned SUSPECT.</p>
<p>Scan disk, antivirus and disk surface checks completed, I ran ALTER DATABASE &#8216;[Name]&#8216; SET ONLINE to bring it back online with no errors.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dgj103.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dgj103.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dgj103.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dgj103.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dgj103.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dgj103.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dgj103.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dgj103.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dgj103.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dgj103.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dgj103.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dgj103.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dgj103.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dgj103.wordpress.com/47/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dgj103.wordpress.com&amp;blog=9615116&amp;post=47&amp;subd=dgj103&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dgj103.wordpress.com/2009/11/26/47/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f92eb5381e5c6be1b26555efd918b1ac?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dgj103</media:title>
		</media:content>

		<media:content url="http://dgj103.files.wordpress.com/2009/11/server-error.jpg?w=300" medium="image">
			<media:title type="html">SQL Error</media:title>
		</media:content>
	</item>
	</channel>
</rss>
