<?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>My SharePoint of View &#187; Operation</title>
	<atom:link href="http://mysharepointofview.com/category/operation/feed/" rel="self" type="application/rss+xml" />
	<link>http://mysharepointofview.com</link>
	<description>Thoughs from the field in SharePoint land</description>
	<lastBuildDate>Tue, 07 Dec 2010 17:04:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>A word about moving site collections</title>
		<link>http://mysharepointofview.com/2010/12/a-word-about-moving-site-collections/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=a-word-about-moving-site-collections</link>
		<comments>http://mysharepointofview.com/2010/12/a-word-about-moving-site-collections/#comments</comments>
		<pubDate>Tue, 07 Dec 2010 17:04:27 +0000</pubDate>
		<dc:creator>Mattias Karlsson</dc:creator>
				<category><![CDATA[How to]]></category>
		<category><![CDATA[Operation]]></category>
		<category><![CDATA[Script]]></category>
		<category><![CDATA[Backup]]></category>
		<category><![CDATA[MOSS]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[Restore]]></category>
		<category><![CDATA[Site Collection]]></category>
		<category><![CDATA[STSADM]]></category>
		<category><![CDATA[WSS]]></category>

		<guid isPermaLink="false">http://mysharepointofview.com/?p=935</guid>
		<description><![CDATA[When the size of your site collections is increasing you sometimes have to move site collections around to put them in new content databases. There are a couple of different ways to perform a site collection move and I will try to cover some of them and end with a quite simple script that can [...]]]></description>
			<content:encoded><![CDATA[<p>When the size of your site collections is increasing you sometimes have to move site collections around to put them in new content databases. There are a couple of different ways to perform a site collection move and I will try to cover some of them and end with a quite simple script that can make the work even easier.</p>
<p>So the first one out is the simple <a title="Backup" href="http://technet.microsoft.com/en-us/library/cc263441(office.12).aspx">backup</a>/<a title="Restore" href="http://technet.microsoft.com/en-us/library/cc262087(office.12).aspx">restore </a>stsadm operations. The problem with this is that when doing the restore it&#8217;s not possible to specify what database to restore it to. So to be able to do this you need to lock the other content databases except the one you want to add it to. This might not be possible and the you could use a maintenance farm.</p>
<p>A much better option is the <a href="http://technet.microsoft.com/en-us/library/cc262923(office.12).aspx">mergecontentdbs </a>stsadm operation that was introduced in SP1 of Microsoft Office SharePoint Server 2007 and allows 3 different options. The first option only analyse the situation and calculate the amount of site collections in the content database and their size. The second option is to move all sites in the specified source content database and move them to the specified destination content database. Our last option is to use an xml file containing the sites that we want to move as an input file to the command and the operation will only move the sites specified in that xml-file</p>
<p>The best thing with the last option is that we can use the <a href="http://technet.microsoft.com/en-us/library/cc262492(office.12).aspx">enumsites</a> operation to get an xml file of all sites for our a specific web application.</p>
<pre>Example: stsadm -o enumsites -url [webAppUrl] -showlocks &gt; "D:tempsites.xml"</pre>
<p>The only problem with the above is that if you have a large amount of site collection and a number of content databases you will need to modify the list and remove the site collections that should not be moved to another content database. Later in this post I will show you how this problem can easily be addressed using PowerShell</p>
<p>Before using the mergecontentdbs operation you should consider two things. The first one is that since the mergecontentdbs operation is using the Content Deployment API it&#8217;s not suitable for sites larger then 10 GB. The other is that if content is changed during the operation you will not only risk losing the content but it could also cause database corruption as described in this KB: <a href="http://support.microsoft.com/kb/969242">http://support.microsoft.com/kb/969242</a>. So before moving the sites it&#8217;s a good recommendation to lock the site collections before the move.</p>
<p>To solve this I created a PowerShell script that does the following:</p>
<ol>
<li>Exports all the site collection for specific web application to an xml-file</li>
<li>Remove all sites in the file that is not located in the database I have specified</li>
<li>Sets the site collections to no access to prevent data loss</li>
<li>Move the sites from the source database to the destination database using the xml file</li>
<li>Offers you to make an IISreset on all WFEs in the farm (Recommended after the stsadm operation)</li>
<li>Set the site collection lock back to it&#8217;s original</li>
</ol>
<pre>$env:PATH = $env:PATH +
";C:Program FilesCommon FilesMicrosoft SharedWeb Server Extensions12BIN" 

$webAppUrl = "http://myWebAppUrl"
$sourceContentDB = "SourceContentDB"
$destinationContentDB = "DestinationContentDB"
$xmlfile = "d:tempsites.xml" 

# enumerate through all site collections and save them to the XML-file
Write-Host "Retreives all site collections located at"
$webAppUrl "and save it to " $xmlfile
stsadm -o enumsites -url $webAppUrl -showlocks &gt; $xmlfile | out-null 

# Import the XML file content $sites = [xml](Get-Content $xmlfile)
# Remove only the site collections located in the source database
Write-Host "Cleaning up the" $xmlfile "file and remove sites that should not be affected"
$sites.Sites.Site | Where-Object {$_.ContentDatabase -ne $sourceContentdb} |
ForEach-Object { $_.ParentNode.RemoveChild($_) | out-null } 

# Enumerate through all the sites in the xml file and make necessary preparations 

foreach($site in $sites.sites.site) {
# Lock the sites to prevent errors when migration and data loss
Write-Host "Locking the site" $site.url "to prevent data loss"
stsadm -o setsitelock -url $site.URL -lock Noaccess
} 

# Moving sites
stsadm -o mergecontentdbs -url $webAppUrl -sourcedatabasename $sourceContentDB
  -destinationdatabasename $destinationContentDB -operation 3 -filename $xmlfile 

# Get the farm object to find get all the WFEs in the farm
[void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint")
$farm = [Microsoft.SharePoint.Administration.SPFarm]::Local
Write-Host "To complete the move you need to make an IISreset on all WFEs in the farm"
Write-Host "You will now get the option to make an IISreset on all your WFEs"
Write-Host "" 

# Enumerate through all servers in the farm 

foreach ($svr in $farm.Servers) {
  foreach ($svc in $svr.ServiceInstances) {
    # If the server has the Windows SharePoint Services Web Application service it
    # is most likely it's a WFE.
    if($svc.TypeName -eq "Windows SharePoint Services Web Application"){
      # Ask if we should make an IISReset on the server
      $IISReset = Read-Host "Do you want to make an IIS-reset on"
      $svr.DisplayName "server (yes/No)?"
      if($IISReset.ToLower() -eq "yes") {
        iisreset $svr.DisplayName
      }
    }
  }
}
# Enumerate through all the sites in the xml file and finalize the move
foreach($site in $sites.sites.site) {
  # Set the original lockstate for the site collection
  Write-Host "Setting the original lock state for site" $site.url "to prevent data loss"
  stsadm -o setsitelock -url $site.URL -lock $site.Lock
}</pre>
<p>You can download the script [Download not found]. Just make sure you run it with an account that has sufficient permissions as described in the <a href="http://technet.microsoft.com/en-us/library/cc262923(office.12).aspx">enumcontentdbs</a> TechNet article and to modify the first 4 paramaters.</p>
<p>Another option to move site collections is to use the <a href="http://technet.microsoft.com/en-us/library/cc508852(office.12).aspx">Batch Site Manager</a> that is included in the <a href="http://technet.microsoft.com/en-us/library/cc508851(office.12).aspx">SharePoint Administration Toolkit</a>. This tool is packaged as a solution that you deploy to your farm. When deployed (and activated), it will then have a new option in Central Administration under Application Management.</p>
<p><a href="http://mysharepointofview.com/wp-content/uploads/2010/12/BatchSiteManager.jpg"><img class="alignnone size-full wp-image-948" title="BatchSiteManager" src="http://mysharepointofview.com/wp-content/uploads/2010/12/BatchSiteManager.jpg" alt="" width="420" height="57" /></a></p>
<p>The tool allows you to very nicely see all site collection for each content database, select the ones you want to move and create a timer job for the move. The Batch Site Manager is using the stsadm operations backup and restore in the background. It usually takes a bit longer then the mergecontentdbs but you get the option to specify when the timer job should be run, where to store the temporary file and you can get a email notification telling you the status of the move. As you can see in the screenshot above the tool also offers you to batch locking and deletion of sites.</p>
<p>The Batch Site Manager is recommended to use with sites up to 15 GB. The mentioned recommendations for the both tools should be seen as recommendation and it&#8217;s possible to test your way forward and what works in your environment.</p>
<p>So what about really large site collections?<br />
When moving really large sites none of the mentioned tools might work and you will then have to take on a different approach. In short this is what you need to do.</p>
<ol>
<li>Set the site collection that needs to be moved (farm 1) to read only and make a SQL backup of the content database (ContentDB A).</li>
<li>Restore the content database with a new name (ContentDB B) and attach it to your Maintanence farm (Farm B) or if you don&#8217;t have one to a different web application. Make sure you use the –assignnewdatabaseid since we will later on restore the database back to it&#8217;s original location</li>
<li>When it&#8217;s attached to farm B, use the <a href="http://technet.microsoft.com/en-us/library/cc261873(office.12).aspx">stsadm -deletesite</a> operation using the -gradualdelete parameter (introduced in the April CU) to remove the sites from ContentDB B that should not be moved.</li>
<li>Backup the ContentDB B and restore it (but don&#8217;t attach it yet) to your Farm A</li>
<li>Delete the large site from ContentDB A using stsadm and -gradualdelete.</li>
<li>When the site is deleted you can attach ContentDB A to Farm A</li>
<li>Unlock the site collection when done.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://mysharepointofview.com/2010/12/a-word-about-moving-site-collections/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Database statistics timer job &#8211; for good and for bad?</title>
		<link>http://mysharepointofview.com/2010/02/database-statistics-timer-job-for-good-and-for-bad/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=database-statistics-timer-job-for-good-and-for-bad</link>
		<comments>http://mysharepointofview.com/2010/02/database-statistics-timer-job-for-good-and-for-bad/#comments</comments>
		<pubDate>Wed, 03 Feb 2010 12:59:44 +0000</pubDate>
		<dc:creator>Mattias Karlsson</dc:creator>
				<category><![CDATA[Enterprise]]></category>
		<category><![CDATA[Operation]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[MOSS]]></category>
		<category><![CDATA[SP2]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[Timer Job]]></category>
		<category><![CDATA[WSS]]></category>

		<guid isPermaLink="false">http://mysharepointofview.com/?p=754</guid>
		<description><![CDATA[When SP2 was released almost a year ago there was an update to the Database Statistics Job. What was updated was a rebuild of the database reindex. This was introduced as one of the main improvements in the SP2 and it is. But in some cases the job might not always be as good as it [...]]]></description>
			<content:encoded><![CDATA[<p>When SP2 was released almost a year ago there was an update to the Database Statistics Job. What was updated was a rebuild of the database reindex. This was introduced as one of the main improvements in the SP2 and it is. But in some cases the job might not always be as good as it sounds for your environment.</p>
<p>The reason for that is that the rebuild of the index is quite aggressive in it&#8217;s nature and does not have any logic built in to it. It simply rebuilds the whole index daily.</p>
<p>If you look at the information from Microsoft at technet (<a href="http://technet.microsoft.com/en-us/library/cc678870.aspx"><em>http://technet.microsoft.com/en-us/library/cc678870.aspx</em></a>) about the job it says:</p>
<p><em>If you have installed Office SharePoint Server 2007 with SP2:</em></p>
<ul>
<li><em>The job updates the query optimization statistics by sampling key tables every time that it runs, instead of performing a full scan.</em></li>
<li><em>If you are running SQL Server 2005 or SQL Server 2008, the job rebuilds all indexes in the content databases every time that it runs.</em></li>
<li><em>If you are running an Enterprise edition of SQL Server 2005 or SQL Server 2008, the job rebuilds most indexes online.</em></li>
<li><em>If you are running a Standard edition of SQL Server 2005 or SQL Server 2008, the job rebuilds the indexes offline.</em></li>
<li><em>If you are running SQL Server 2000, the job does not rebuild any indexes.</em></li>
</ul>
<p>It actually also specifies that the job should only run weekly if you are running MOSS and daily if your using WSS. I assume that this is just a mistake in the documentation because in all environments I looked in it&#8217;s set to daily no matter if you are using Moss or WSS with SP2.</p>
<p>So what happens if you have a large environment where your have backups, or maybe a crawl running at the same time. Or maybe your SQL DBA&#8217;s have done their job and have their own reindex and update statistics job put directly in SQL? Well, you could run in to performance problems and extreme slow environments together with backups taking longer time then they should, error messages and maybe even corrupt databases. The later I have not seen but potentially it&#8217;s possible.</p>
<p>I&#8217;m not saying that bad things will happen to your environment with this job, but more of be aware and have a look at how this is configured in your environment. Maybe you should reschedule it if it&#8217;s in conflict with any other SQL job. And if you are not the SQL DBA talk to the DBAs and make sure that they don&#8217;t have any similar already in place. If they have, is it better with built in logic where they look at the fragmentation level? Then maybe you should disable the SharePoint Timer Job and only run the job put on the SQL server.</p>
<p>If you want to find out what settings you have you could first look in Central <a href="http://mysharepointofview.com/wp-content/uploads/2010/02/GlobalConfiguration.jpg"><img class="size-full wp-image-758 alignright" style="margin: 10px;" title="GlobalConfiguration" src="http://mysharepointofview.com/wp-content/uploads/2010/02/GlobalConfiguration.jpg" alt="" width="142" height="74" /></a>Administration. You have one Database Statistics job for each Web Application and you can see that under Operations and Timer Job Status. In the Timer Job Definition, found at the same place in Central administration, you can see if the job is run weekly or daily.<br />
The best  way is however to use STSADM or <a href="http://technet.microsoft.com/en-us/library/dd745013.aspx" target="_self">SPDiag</a> to get the information on when it&#8217;s scheduled. To reschedule jobs you need to use STSADM.</p>
<p>This is how you get the settings you have using STSADM:</p>
<p><em>stsadm -o getproperty -pn job-database-statistics -url <a href="http://YourSPSite">http://YourSPSite</a></em></p>
<p>And to set a new value you do like this:</p>
<p><em>stsadm -o setproperty -pn job-database-statistics -pv &#8220;Weekly between Fri 22:00:00 and Sun 06:00:00&#8243; -url <a href="http://YourSPSite">http://YourSPSite</a></em></p>
<p>Here you have the STSADM reference for this particular task: <a href="http://technet.microsoft.com/en-us/library/cc424963.aspx">http://technet.microsoft.com/en-us/library/cc424963.aspx</a></p>
]]></content:encoded>
			<wfw:commentRss>http://mysharepointofview.com/2010/02/database-statistics-timer-job-for-good-and-for-bad/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Patching SharePoint 2010</title>
		<link>http://mysharepointofview.com/2009/10/patching-sharepoint-2010/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=patching-sharepoint-2010</link>
		<comments>http://mysharepointofview.com/2009/10/patching-sharepoint-2010/#comments</comments>
		<pubDate>Mon, 26 Oct 2009 05:10:33 +0000</pubDate>
		<dc:creator>Mattias Karlsson</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[Operation]]></category>
		<category><![CDATA[Patching]]></category>
		<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[SharePoint Conference 2009]]></category>

		<guid isPermaLink="false">http://mysharepointofview.com/?p=673</guid>
		<description><![CDATA[This is a short summary of the session: Patching SharePoint 2010 held by Shane Young and Todd Klindt held at the SharePoint Conference 2009. Listening to Shane and Todd is always entertaining, it’s like a mix of Chandler from Friends and Jim Carry (Is it only me that thinks they actually are quite alike from [...]]]></description>
			<content:encoded><![CDATA[<p>This is a short summary of the session: Patching SharePoint 2010 held by Shane Young and Todd Klindt held at the SharePoint Conference 2009.</p>
<p>Listening to Shane and Todd is always entertaining, it’s like a mix of Chandler from Friends and Jim Carry (Is it only me that thinks they actually are quite alike from a distance?) giving you performance on stage. But they are very good on what they do and are very inspiring, so thanks guys!</p>
<p>So what did they talk about? Well, patching in SharePoint 2010 is such a relief for Admins. Finally we can install the bits on the machines, wait for our maint window and kick of the DB upgrade, and you want to do the psconfig? Well, you are now able to kick them of simultaneously on all your WFEs.</p>
<p>Another new feather is that you are now able to mount multiple content databases, it will of course put a heavy load on the SQL but find out what your system can handle and just run it to get up to speed.</p>
<p>In SharePoint 2010 you will now be able to monitor the upgrade and patching from Central Administration. It’s great! And you are able from a “dashboard” like page see the patch status of your servers, and if you are missing a patch on one of the servers that will be displayed and it will show where to find the patch with a link, just lovely.</p>
<p>Other things picked up from the session is that MS will continue to have CU (Cumulative updates) on an every other month basis. What Microsoft also has promised is to never push a SharePoint path out through Windows update, thank god!</p>
<p><a href="http://mysharepointofview.com/wp-content/uploads/2009/10/IMG_3827.JPG"><img class="alignnone size-thumbnail wp-image-674" title="IMG_3827" src="http://mysharepointofview.com/wp-content/uploads/2009/10/IMG_3827-150x150.jpg" alt="IMG_3827" width="150" height="150" /></a> <a href="http://mysharepointofview.com/wp-content/uploads/2009/10/IMG_3829.JPG"><img class="alignnone size-thumbnail wp-image-675" title="IMG_3829" src="http://mysharepointofview.com/wp-content/uploads/2009/10/IMG_3829-150x150.jpg" alt="IMG_3829" width="150" height="150" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://mysharepointofview.com/2009/10/patching-sharepoint-2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Server Health and monitoring in SharePoint 2010</title>
		<link>http://mysharepointofview.com/2009/10/server-health-and-monitoring-in-sharepoint-2010/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=server-health-and-monitoring-in-sharepoint-2010</link>
		<comments>http://mysharepointofview.com/2009/10/server-health-and-monitoring-in-sharepoint-2010/#comments</comments>
		<pubDate>Fri, 23 Oct 2009 16:08:25 +0000</pubDate>
		<dc:creator>Mattias Karlsson</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[Operation]]></category>
		<category><![CDATA[Developer Dashboard]]></category>
		<category><![CDATA[Logging database]]></category>
		<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[SharePoint Conference 2009]]></category>
		<category><![CDATA[ULS Viewer]]></category>

		<guid isPermaLink="false">http://mysharepointofview.com/?p=664</guid>
		<description><![CDATA[This is a summary of the: Server and Health Monitoring session held by Dan Winter and Umesh Unnikrishnan at the SharePoint Conference 2009. Are you on the admin side as me? Well then we have some really interesting things to look forward to in 2010. It’s just so much good things that I will not be [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://mysharepointofview.com/wp-content/uploads/2009/10/IMG_3820.JPG"><img class="size-thumbnail wp-image-663 alignright" title="IMG_3820" src="http://mysharepointofview.com/wp-content/uploads/2009/10/IMG_3820-150x150.jpg" alt="IMG_3820" width="150" height="150" /></a></p>
<p>This is a summary of the: Server and Health Monitoring session held by Dan Winter and Umesh Unnikrishnan at the SharePoint Conference 2009.</p>
<p>Are you on the admin side as me? Well then we have some really interesting things to look forward to in 2010. It’s just so much good things that I will not be able to get everything here. But to take 4 of then that was discussed at this session.</p>
<p><strong>ULS Improvements.<br />
</strong>They way to handle what is getting logged from Central Admin has been very much improved and with Event Throtteling and Event Flood Protection that basically is a way to say that; I have had this exact same errors during a short amount of time. I will stop logging this now.<br />
You now have the option to set the amount of GB that you logs should be using and not only the, critical events will be sent to the logging database.<br />
Together with the Correlation ID’s and the new ULS Viewer tool that was revealed today (and that will work on 2007 environments as well) you are able to easily find the problems and track them down. You find the ULS Viewer at: <a href="http://code.msdn.microsoft.com/ULSViewer">http://code.msdn.microsoft.com/ULSViewer</a></p>
<p><a href="http://mysharepointofview.com/wp-content/uploads/2009/10/IMG_3820.JPG"></a></p>
<p><strong>Logging Database<br />
</strong>I wrote a bit yesterday about this but the logging database is a new database that will be set up by default where different log entries will end up and by doing so you are able to hook it up to SCOM (System Center Operation Manager) to manage your SharePoint farm. The DB schema is documented so be sure that this will end up in a lot of third-party products to help you monitor the logging database. MS will ship two reports with RTM and that will be: Slowest pages and most frequent users.</p>
<p><strong>Developer dashboard<br />
</strong>Feels like I have already covered it in my earlier posts, but what it basically is that it allows admins to get a report on each site on for instance what parts took long time to lead etc. Very useful!</p>
<p><a href="http://mysharepointofview.com/wp-content/uploads/2009/10/IMG_3820.JPG"></a></p>
<p><strong>Server Health<br />
</strong>Last but not least is the new Server Health page in Central Administration. Here you get a dashboard of the servers in your farm. For instance, among the approx. 100 built in “rules”, for monitoring it might check for accounts used on Web applications, disk space etc. So you can from there see what you need to do and correct it. Best think is that this is extensible so that you can build your own rules and plug in to SharePoint.</p>
<p><a href="http://mysharepointofview.com/wp-content/uploads/2009/10/IMG_3821.JPG"><img class="alignnone size-thumbnail wp-image-665" title="IMG_3821" src="http://mysharepointofview.com/wp-content/uploads/2009/10/IMG_3821-150x150.jpg" alt="IMG_3821" width="150" height="150" /></a> <a href="http://mysharepointofview.com/wp-content/uploads/2009/10/IMG_3822.JPG"><img class="alignnone size-thumbnail wp-image-666" title="IMG_3822" src="http://mysharepointofview.com/wp-content/uploads/2009/10/IMG_3822-150x150.jpg" alt="IMG_3822" width="150" height="150" /></a> <a href="http://mysharepointofview.com/wp-content/uploads/2009/10/IMG_3824.JPG"><img class="alignnone size-thumbnail wp-image-667" title="IMG_3824" src="http://mysharepointofview.com/wp-content/uploads/2009/10/IMG_3824-150x150.jpg" alt="IMG_3824" width="150" height="150" /></a> <a href="http://mysharepointofview.com/wp-content/uploads/2009/10/IMG_3825.JPG"><img class="alignnone size-thumbnail wp-image-668" title="IMG_3825" src="http://mysharepointofview.com/wp-content/uploads/2009/10/IMG_3825-150x150.jpg" alt="IMG_3825" width="150" height="150" /></a> <a href="http://mysharepointofview.com/wp-content/uploads/2009/10/IMG_3826.JPG"><img class="alignnone size-thumbnail wp-image-669" title="IMG_3826" src="http://mysharepointofview.com/wp-content/uploads/2009/10/IMG_3826-150x150.jpg" alt="IMG_3826" width="150" height="150" /></a><a href="http://mysharepointofview.com/wp-content/uploads/2009/10/IMG_3820.JPG"></a></p>
]]></content:encoded>
			<wfw:commentRss>http://mysharepointofview.com/2009/10/server-health-and-monitoring-in-sharepoint-2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Delete Vs. Delete content database</title>
		<link>http://mysharepointofview.com/2009/05/delete-vs-delete-content-database/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=delete-vs-delete-content-database</link>
		<comments>http://mysharepointofview.com/2009/05/delete-vs-delete-content-database/#comments</comments>
		<pubDate>Mon, 11 May 2009 19:12:35 +0000</pubDate>
		<dc:creator>Mattias Karlsson</dc:creator>
				<category><![CDATA[Operation]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[Central Adminstration]]></category>
		<category><![CDATA[Content database]]></category>
		<category><![CDATA[MOSS]]></category>
		<category><![CDATA[SharePoint]]></category>

		<guid isPermaLink="false">http://mysharepointofview.com/?p=308</guid>
		<description><![CDATA[Today I learned something that I actually haven&#8217;t put many thoughts on before and that actually came as a surprise to me. SharePoint handles the Delete of Content Databases differently depending on from where you do it. This might not be news for you but for a second I thought I had grown old and [...]]]></description>
			<content:encoded><![CDATA[<p>Today I learned something that I actually haven&#8217;t put many thoughts on before and that actually came as a surprise to me. SharePoint handles the Delete of Content Databases differently depending on from where you do it. This might not be news for you but for a second I thought I had grown old and lost my memory of what I just been doing.</p>
<p>I was sitting in my Moss environment and had a couple of tasks in front of me where I should recreate a web application we had been using for test purposes. We now wanted to recreate it and start all over again. So what I did was that I first went in to the Central Administration, selected the Web Application and then Content Databases. I selected the Content DB and clicked Delete.</p>
<p> <a href="http://mysharepointofview.com/wp-content/uploads/2009/05/deletecontentdb.jpg" target="_blank"><img class="alignnone size-medium wp-image-310" title="deletecontentdb" src="http://mysharepointofview.com/wp-content/uploads/2009/05/deletecontentdb-300x161.jpg" alt="deletecontentdb" width="300" height="161" /></a></p>
<p>I then recreated the Web Application with some changes in the setup from before, applied a couple of Solution Packages and then as a last step I should create a new Root Site Collection. This I did with STSADM. Then, when running the STSADM command I got an error message saying that there were already a site collection in the specified location. I double, triple and quadruple checked the syntax of my STSADM command, it was correct written. I then tried to surf to the site and for some reason there where what I just a couple of minutes earlier had deleted. It where somewhere here I started to lose faith on my memory, what did I just do? Have I could I have&#8230;</p>
<p> </p>
<p>But as Dana Scully always said, -&#8221;There is always a logical explanation&#8221; and it certainly was this time as well. It turned out that If you delete the database from that Content Database list it just detaches the database and does not actually delete the database from the SQL server. But if you instead select delete Content Database when you delete the Web Application it&#8217;s deleted from the SQL Server. So what happened was that I recreated the Web Application I choose the same name for the Content DB as I just had used and the, not that surprisingly all content where still there.</p>
<p> <a href="http://mysharepointofview.com/wp-content/uploads/2009/05/deletewebapp.jpg" target="_blank"><img class="alignnone size-medium wp-image-311" title="deletewebapp" src="http://mysharepointofview.com/wp-content/uploads/2009/05/deletewebapp-300x101.jpg" alt="deletewebapp" width="300" height="101" /></a></p>
<p>Well, at least I learned something new, isn&#8217;t it wonderful with Mondays?</p>
]]></content:encoded>
			<wfw:commentRss>http://mysharepointofview.com/2009/05/delete-vs-delete-content-database/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

