Move SharePoint Database

Before attempting to move the databases associated with your SharePoint instance, make sure you backup your farm before continuing. For example, the following PowerShell script performs a full backup of the farm:

Backup-SPFarm -Directory c:\backuppath -BackupMethod Full

Depending on the size of the databases, this may take some time to complete.

One thing to check before starting the move is that the version of SQL is identical for both the source and target servers.

Once your happy that SharePoint has been backed up, the first thing to do is stop all SharePoint and Internet Information Services (IIS) services on the server that is running the Central Administration Web site. Do this by opening the Services snap-in from the Microsoft Management Console.
Continue reading

Posted in SharePoint | Tagged , , | 3 Comments

Content Type XML Document

Over the past few months, I’ve been surprised by the number of people I’ve spoken with who were not aware that it’s possible to store custom XML documents against content type objects through the API. These are people who have either been developing of providing consultation for the platform since, at least, the release of MOSS 2007.

So, for that reason, I’ve decided to write a short post about the functionality.

The SPContentType class contains a property called XmlDocuments.

This property exposes a collection of XML documents that are stored against the content type. Although there can be a number of XML documents in this collection, it is also possible to add your own XML documents to the collection.
Continue reading

Posted in SharePoint | Tagged , , | Leave a comment

Deploy Solution to Site configured with Claims-based Authentication

This is a simple and quick post to provide a solution for developers working against sites configured with claims-based authentication and receiving an access denied error while trying to deploy solutions via Visual Studio. The exact error is:

Error occurred in deployment step 'Recycle IIS Application Pool': <nativehr>0x80070005</nativehr><nativestack></nativestack>Access denied.

Continue reading

Posted in SharePoint | Tagged , , | 16 Comments

Oz

My blog’s been fairly quiet lately, this is all down to some pretty big changes in my personal life.

I’ve recently accepted a SharePoint Architect role in Melbourne, Australia and things have been pretty hectic of late, to put it mildly!

Once we’ve moved and settled my blog will be back up and running with more SharePointy goodness.

Posted in General | 1 Comment

Get SearchServiceApplication object instance

Looking to retrieve the SearchServiceApplication object for the current site? It’s pretty straight forward, as the following demonstrates:

Start by adding the following namespace to your class

using Microsoft.Office.Server.Search.Administration;

The Microsoft.Office.Server assembly can be found in the ISAPI folder of the SharePoint hive.
Continue reading

Posted in SharePoint | Tagged , | 1 Comment