<?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:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Rehman Gul [MVP, MCTS SharePoint]</title>
	<atom:link href="http://rehmangul.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://rehmangul.wordpress.com</link>
	<description>SharePoint Blog</description>
	<lastBuildDate>Wed, 11 Nov 2009 00:09:55 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='rehmangul.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/2c7d43e6d551d8bc9b18d83cd660230c?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Rehman Gul [MVP, MCTS SharePoint]</title>
		<link>http://rehmangul.wordpress.com</link>
	</image>
			<item>
		<title>Send email to a user, getting it from a &#8216;Person or Group&#8217; field</title>
		<link>http://rehmangul.wordpress.com/2009/11/10/send-email-to-a-user-getting-it-from-a-person-or-group-field/</link>
		<comments>http://rehmangul.wordpress.com/2009/11/10/send-email-to-a-user-getting-it-from-a-person-or-group-field/#comments</comments>
		<pubDate>Tue, 10 Nov 2009 23:58:59 +0000</pubDate>
		<dc:creator>rehmangul</dc:creator>
				<category><![CDATA[Blogroll]]></category>
		<category><![CDATA[MOSS]]></category>
		<category><![CDATA[MS SharePoint Sever]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[event handlers]]></category>
		<category><![CDATA[sharepoint]]></category>
		<category><![CDATA[sps]]></category>
		<category><![CDATA[Coding SharePoint]]></category>
		<category><![CDATA[Custom Sharepoint]]></category>
		<category><![CDATA[customise]]></category>
		<category><![CDATA[email server]]></category>
		<category><![CDATA[moss customisation]]></category>
		<category><![CDATA[SharePoint Customization]]></category>

		<guid isPermaLink="false">http://rehmangul.wordpress.com/?p=303</guid>
		<description><![CDATA[First, we have to read from &#8220;Person or Group&#8221; field.
It could be a &#8220;Person or Group&#8221; field that allows one user to be selected.
It could be a &#8220;Person or Group&#8221; field that allows multiple users to be selected.
If its a single user, get user, get his email address, send him email.
If there are multiple users, get each [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rehmangul.wordpress.com&blog=637369&post=303&subd=rehmangul&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>First, we have to read from &#8220;Person or Group&#8221; field.<br />
It could be a &#8220;Person or Group&#8221; field that allows one user to be selected.<br />
It could be a &#8220;Person or Group&#8221; field that allows multiple users to be selected.<br />
If its a single user, get user, get his email address, send him email.<br />
If there are multiple users, get each of them one by one, get their email addresses, send them emails.</p>
<p>Do not copy/paste the code; and if you do, look for the typos <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>using System.Net.Mail;</p>
<p>SPList myList = myWeb.Lists["myListNameHere"];<br />
SPFieldCollection allMyListFields = myList.Fields;</p>
<p>foreach(SPListItem myItem in myList.Items)  //go through all the items<br />
{<br />
         foreach (SPField myField in allMyListFields)  //go through all the fields<br />
         {<br />
                 if (myField.GetType() == typeof(SPFieldUser))  //check if the field is Person or Group field i.e. SPFieldUser<br />
                {          <br />
                          Type fieldType = myField.GetFieldValue(myItem[myField].ToString()).GetType();<br />
                            <br />
                           if (fieldType == typeof(SPFieldUserValueCollection))  //check if the field allows multiple selection of users                <br />
                          {<br />
                                string emailToFieldValues = myItem[myField].ToString();<br />
                                SPFieldUserValueCollection emailToUsers = new SPFieldUserValueCollection(myItem.Web, emailToFieldValues.ToString());<br />
                                foreach (SPFieldUserValue emailUser in emailToUsers)<br />
                                {<br />
                                    SPUser emailThisUser = emailUser.User;<br />
                                    string emailAddress = emailThisUser.Email.ToString();<br />
                                    SPUtility.SendEmail(myWeb, true, true, emailAddress, emailSubject, emailBody);<br />
                                }<br />
                            }<br />
                            else<br />
                            {<br />
                             SPFieldUserValue emailToFieldValue = (SPFieldUserValue)myField.GetFieldValue(myItem[myField].ToString());<br />
                                SPUser emailToUser = emailToFieldValue.User;<br />
                                string emailToAddress = emailToUser.Email.ToString();<br />
                                SPUtility.SendEmail(myWeb, true, true, emailToAddress, emailSubject, emailBody);<br />
                            }<br />
                        }<br />
                     }<br />
                   }</p>
<p>Hope this helps&#8211;</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rehmangul.wordpress.com/303/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rehmangul.wordpress.com/303/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rehmangul.wordpress.com/303/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rehmangul.wordpress.com/303/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rehmangul.wordpress.com/303/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rehmangul.wordpress.com/303/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rehmangul.wordpress.com/303/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rehmangul.wordpress.com/303/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rehmangul.wordpress.com/303/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rehmangul.wordpress.com/303/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rehmangul.wordpress.com&blog=637369&post=303&subd=rehmangul&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://rehmangul.wordpress.com/2009/11/10/send-email-to-a-user-getting-it-from-a-person-or-group-field/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/91d0677ad58d84af0a601b52b33e250c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rehmangul</media:title>
		</media:content>
	</item>
		<item>
		<title>MVP Award</title>
		<link>http://rehmangul.wordpress.com/2009/07/03/mvp-award/</link>
		<comments>http://rehmangul.wordpress.com/2009/07/03/mvp-award/#comments</comments>
		<pubDate>Fri, 03 Jul 2009 20:57:07 +0000</pubDate>
		<dc:creator>rehmangul</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://rehmangul.wordpress.com/?p=301</guid>
		<description><![CDATA[I am happy to share the news that Microsoft has announced MVP [Most Valuable Professional] award for me for the third consecutive year&#8230;.
https://mvp.support.microsoft.com/profile/rehman
It&#8217;s been a gratifying experience&#8230;..
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rehmangul.wordpress.com&blog=637369&post=301&subd=rehmangul&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I am happy to share the news that Microsoft has announced MVP [Most Valuable Professional] award for me for the third consecutive year&#8230;.</p>
<p><a href="https://mvp.support.microsoft.com/profile/rehman">https://mvp.support.microsoft.com/profile/rehman</a></p>
<p>It&#8217;s been a gratifying experience&#8230;..</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rehmangul.wordpress.com/301/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rehmangul.wordpress.com/301/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rehmangul.wordpress.com/301/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rehmangul.wordpress.com/301/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rehmangul.wordpress.com/301/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rehmangul.wordpress.com/301/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rehmangul.wordpress.com/301/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rehmangul.wordpress.com/301/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rehmangul.wordpress.com/301/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rehmangul.wordpress.com/301/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rehmangul.wordpress.com&blog=637369&post=301&subd=rehmangul&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://rehmangul.wordpress.com/2009/07/03/mvp-award/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/91d0677ad58d84af0a601b52b33e250c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rehmangul</media:title>
		</media:content>
	</item>
		<item>
		<title>Approaches to Backup and Restore a Sharepoint Farm</title>
		<link>http://rehmangul.wordpress.com/2009/04/29/some-basic-information-to-backup-and-restore-a-sharepoint-farm/</link>
		<comments>http://rehmangul.wordpress.com/2009/04/29/some-basic-information-to-backup-and-restore-a-sharepoint-farm/#comments</comments>
		<pubDate>Wed, 29 Apr 2009 14:12:25 +0000</pubDate>
		<dc:creator>rehmangul</dc:creator>
				<category><![CDATA[Blogroll]]></category>
		<category><![CDATA[MOSS]]></category>
		<category><![CDATA[MS SharePoint Sever]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[sharepoint]]></category>
		<category><![CDATA[sps]]></category>
		<category><![CDATA[central administration]]></category>
		<category><![CDATA[configuration wizard]]></category>
		<category><![CDATA[configuration wizard errors]]></category>
		<category><![CDATA[Custom Sharepoint]]></category>
		<category><![CDATA[customise]]></category>
		<category><![CDATA[errors]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[integration]]></category>
		<category><![CDATA[moss customisation]]></category>
		<category><![CDATA[moss errors]]></category>
		<category><![CDATA[move from testing to production]]></category>
		<category><![CDATA[move to another farm]]></category>
		<category><![CDATA[Service Unavailable]]></category>
		<category><![CDATA[SharePoint Customization]]></category>
		<category><![CDATA[sharepoint errors]]></category>
		<category><![CDATA[sharepoint farm]]></category>
		<category><![CDATA[stsadm]]></category>
		<category><![CDATA[tips and tricks]]></category>
		<category><![CDATA[workarounds]]></category>

		<guid isPermaLink="false">http://rehmangul.wordpress.com/?p=268</guid>
		<description><![CDATA[It is important to understand the differences between MOVING, MIGRATING or UPGRADING a farm:
http://technet.microsoft.com/en-us/library/cc262370.aspx
I&#8217;ll slightly touch these at the bottom of this article. Mainly, I am going to discuss approaches how can you MOVE from one farm to another.
MOVING to another farm:
If you are moving from a test farm to a production farm, this  involves [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rehmangul.wordpress.com&blog=637369&post=268&subd=rehmangul&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>It is important to understand the differences between <strong>MOVING</strong>, <strong>MIGRATING</strong> or <strong>UPGRADING</strong> a farm:</p>
<p><a href="http://technet.microsoft.com/en-us/library/cc262370.aspx">http://technet.microsoft.com/en-us/library/cc262370.aspx</a></p>
<p>I&#8217;ll slightly touch these at the bottom of this article. Mainly, I am going to discuss approaches how can you <strong>MOVE</strong> from one farm to another.</p>
<p><strong>MOVING</strong> to another farm:</p>
<p>If you are moving from a test farm to a production farm, this  involves MOVING a farm. You must have similar hardware (32-bit or 64-bit which ever) and you must have similar software (version of sharepoint, windows, all software updates) and you must have similar topology (server names, number of servers) on the farm you are MOVING to.</p>
<p>The reason is becasue the configuration database and the Central Admin database contain computer-specific information. For that reason, you can only move to a new farm if you can configure it to be exactly the same as your original farm. Configuration database will not work for a new environment where topology, server roles or software updates are different.</p>
<p>Okey, if you do not have the same hardware, software or topology, then what to do? Then you should move everything in the farm except Configuration and Central Admin databases, and configure the new farm on your own, wihout expecting this to be done by the restore procedure, since we are not restoring configuration database. OR, you should consider <strong>MIGRATING</strong> or <strong>UPGRADING</strong>:</p>
<p><a href="http://technet.microsoft.com/en-us/library/cc262370.aspx">http://technet.microsoft.com/en-us/library/cc262370.aspx</a></p>
<p>So, let talk about <strong>MOVING</strong> to another farm. Microsoft says this is the way to &#8220;Move to another farm&#8221;:</p>
<p><a href="http://technet.microsoft.com/en-us/library/cc261918.aspx">http://technet.microsoft.com/en-us/library/cc261918.aspx</a></p>
<p>This page has a lot of information, hidden and obvious, I wish to consolidate it here:</p>
<p>There are three possible ways through which you can Backup and Restore your farm (note that I said backup/restore, not move):</p>
<ol>
<li>STSADM</li>
<li>Central Admin</li>
<li>Sql Server (lets ignore DPM and the others for the time being)</li>
</ol>
<p>But there is only one way to <strong>MOVE</strong> your farm to another farm and that is:</p>
<ul>
<li>Sql Server (tools)</li>
</ul>
<p><strong>MIGRATING</strong> to another farm using STSADM and Central Admin (tools) is regarded as obsolete. That means if you are moving to a new or different farm, you should not use Central Admin or STSADM command. So, moving or migrating whatever you may want to call it (because here it just means moving to a different environment), STSADM and Central Admin approach is obsolete. (I couldn&#8217;t find anywhere where Microsoft supports/permits you to <strong>MOVE</strong> to another/different/new farm using STSADM or Central Admin). </p>
<p><a href="http://technet.microsoft.com/en-us/library/cc262281.aspx">http://technet.microsoft.com/en-us/library/cc262281.aspx</a> (Migrating through Central Admin (Obsolete))</p>
<p><a href="http://technet.microsoft.com/en-us/library/cc263236.aspx">http://technet.microsoft.com/en-us/library/cc263236.aspx</a> (Migrating through STSADM (Obsolete))</p>
<p>We can restore our farm using STSADM and Central Admin, only on the <strong>SAME</strong> farm from which the backup was taken i.e. no new farm is involved at all:</p>
<p><a href="http://technet.microsoft.com/en-us/library/cc261704.aspx">http://technet.microsoft.com/en-us/library/cc261704.aspx</a> (Restore using STSADM)</p>
<p><a href="http://technet.microsoft.com/en-us/library/cc262928.aspx">http://technet.microsoft.com/en-us/library/cc262928.aspx</a> (Restore using Central Admin)</p>
<p>If you will use Central Admin, you will select &#8220;Same Configuration&#8221; option for the &#8220;Type of Restore&#8221; radio button. And for STSADM, you will use &#8220;overwrite&#8221; value for &#8220;-restoremethod&#8221; parameter. Using Central Admin, you can take farm level backup but it will not let you restore Central Admin and Configuration databases saying that &#8220;Central Admin and Configuration databases cannot be restored from this user interface&#8221;.</p>
<p> Now the only way left while <strong>moving</strong> to a new farm is SQL Server (tools):</p>
<p><a href="http://technet.microsoft.com/en-us/library/cc261918.aspx">http://technet.microsoft.com/en-us/library/cc261918.aspx</a></p>
<p>After we have reached this decision, remember that there could be two possibilites:</p>
<ol>
<li>Your new farm on which you are restoring may have different specs from the farm from which the backup is taken from. Specs means server names, software updates, number of servers.</li>
<li>Your new farm may have exactly the same specs as the farm from which the backup is taken from.</li>
</ol>
<p>If you plan to move Config and Central Admin databases, your new farm <strong>MUST </strong>have the same specs. If your new farm has different specs, then you should not move Config and Central Admin databases.</p>
<p>&#8220;Move to another farm&#8221; (<a href="http://technet.microsoft.com/en-us/library/cc261918.aspx">http://technet.microsoft.com/en-us/library/cc261918.aspx</a>) provides a step by step procedure to move to a new farm, and it assumes that sharepoint is already installed on the destination farm, which essentially means that Configuration and Central Admin databases are already created. So, if you have the same specs for your new farm, you can go ahead and overwrite Config and Central Admin databases, this will restore the configuration from the backup set.</p>
<p>Now it could be the case that you can live without moving Configuration and Central Admin databases to the new farm i.e. you will configure the new farm by yourself and you dont need to transfer Config and Central Admin databases from your old farm. So, what will you move then:</p>
<ol>
<li>Content Databases</li>
<li>SSP Databases</li>
<li>Search Databases for SSPs</li>
<li>Search Databases</li>
</ol>
<p>However, above databases can also be restored using Central Admin and STSADM approaches.</p>
<p>Summary: Moving to a new farm involves SQL Server and a farm with similar specs, otherwise do not move Config and Central Admin databases.</p>
<p>If you are looking to Move only the Content Databases, here is the one stop shop:</p>
<p><a href="http://technet.microsoft.com/en-us/library/cc262792.aspx">http://technet.microsoft.com/en-us/library/cc262792.aspx</a></p>
<p><strong>MIGRATING</strong> to another farm:</p>
<p>If you are changing from 32-bit hardware to 64-bit hardware, this will also be a MIGRATION process (i.e. change in hardware specs as mentioned earlier). If you are planning to change your existing SharePoint Server 2007 platform to Windows Server 2008 (platform), you might have to change to 64-bit hardware. And to upgrade Microsoft Office SharePoint Server 2007 to a 64-bit environment, you must migrate existing servers to a new farm. You cannot upgrade Office SharePoint Server 2007 directly from the 32-bit edition of Office SharePoint Server 2007 to the 64-bit edition.</p>
<p><a href="http://technet.microsoft.com/en-us/library/dd622865.aspx">http://technet.microsoft.com/en-us/library/dd622865.aspx</a></p>
<p><strong>UPGRADING</strong> a farm:</p>
<p> Upgrade is when you are moving to a different version of SharePoint Server e.g. from SharePoint 2003 to SharePoint 2007.</p>
<p> If you are moving just the database server (all databases including Config and Central Admin) and not the whole farm, look here:</p>
<p><a href="http://technet.microsoft.com/en-us/library/cc512725.aspx#Section1">http://technet.microsoft.com/en-us/library/cc512725.aspx#Section1</a></p>
<p>If you wish to <em>ditch</em> the farm level backup/restore and just move your website (site collection) to the new farm (and save yourself a lot of hassle), have a look here:</p>
<p><a href="http://rehmangul.wordpress.com/2009/04/18/sharepoint-site-backup-and-restore/">http://rehmangul.wordpress.com/2009/04/18/sharepoint-site-backup-and-restore/</a></p>
<p>After release of SP2 and CU for April, you can safely backup and restore your site collections to a new farm, without worrying about absolute URL issues:</p>
<p><a href="http://blogs.technet.com/stefan_gossner/archive/2009/05/01/red-is-green-up-is-down-and-the-unsupported-suddenly-becomes-supported.aspx">http://blogs.technet.com/stefan_gossner/archive/2009/05/01/red-is-green-up-is-down-and-the-unsupported-suddenly-becomes-supported.aspx</a></p>
<p>Hope this helps&#8230;.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rehmangul.wordpress.com/268/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rehmangul.wordpress.com/268/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rehmangul.wordpress.com/268/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rehmangul.wordpress.com/268/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rehmangul.wordpress.com/268/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rehmangul.wordpress.com/268/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rehmangul.wordpress.com/268/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rehmangul.wordpress.com/268/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rehmangul.wordpress.com/268/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rehmangul.wordpress.com/268/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rehmangul.wordpress.com&blog=637369&post=268&subd=rehmangul&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://rehmangul.wordpress.com/2009/04/29/some-basic-information-to-backup-and-restore-a-sharepoint-farm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/91d0677ad58d84af0a601b52b33e250c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rehmangul</media:title>
		</media:content>
	</item>
		<item>
		<title>SharePoint Service Pack 2</title>
		<link>http://rehmangul.wordpress.com/2009/04/29/sharepoint-service-pack-2/</link>
		<comments>http://rehmangul.wordpress.com/2009/04/29/sharepoint-service-pack-2/#comments</comments>
		<pubDate>Wed, 29 Apr 2009 01:11:01 +0000</pubDate>
		<dc:creator>rehmangul</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Custom Sharepoint]]></category>
		<category><![CDATA[MOSS]]></category>
		<category><![CDATA[moss customisation]]></category>
		<category><![CDATA[service pack]]></category>
		<category><![CDATA[SharePoint Customization]]></category>
		<category><![CDATA[sharepoint errors]]></category>
		<category><![CDATA[tips and tricks]]></category>
		<category><![CDATA[workarounds]]></category>

		<guid isPermaLink="false">http://rehmangul.wordpress.com/?p=262</guid>
		<description><![CDATA[Sharepoint Service Pack 2 (SP2) is now released:
http://blogs.msdn.com/sharepoint/archive/2009/04/28/announcing-service-pack-2-for-office-sharepoint-server-2007-and-windows-sharepoint-services-3-0.aspx
Note this:
&#8220;A new preupgradecheck operation is added to stsadm tool. It can be used to scan your server farm to establish whether it is ready for upgrade to SharePoint Products and Technologies &#8220;14&#8243;.&#8220;
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rehmangul.wordpress.com&blog=637369&post=262&subd=rehmangul&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Sharepoint Service Pack 2 (SP2) is now released:</p>
<p><a href="http://blogs.msdn.com/sharepoint/archive/2009/04/28/announcing-service-pack-2-for-office-sharepoint-server-2007-and-windows-sharepoint-services-3-0.aspx">http://blogs.msdn.com/sharepoint/archive/2009/04/28/announcing-service-pack-2-for-office-sharepoint-server-2007-and-windows-sharepoint-services-3-0.aspx</a></p>
<p>Note this:</p>
<p class="MsoNormal" style="margin:0;"><span lang="EN"><span style="font-size:small;font-family:Calibri;">&#8220;<em>A new <strong>preupgradecheck</strong> operation is added to stsadm tool. It can be used to scan your server farm to establish whether it is ready for upgrade to SharePoint Products and Technologies &#8220;14&#8243;.</em>&#8220;</span></span></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rehmangul.wordpress.com/262/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rehmangul.wordpress.com/262/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rehmangul.wordpress.com/262/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rehmangul.wordpress.com/262/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rehmangul.wordpress.com/262/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rehmangul.wordpress.com/262/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rehmangul.wordpress.com/262/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rehmangul.wordpress.com/262/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rehmangul.wordpress.com/262/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rehmangul.wordpress.com/262/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rehmangul.wordpress.com&blog=637369&post=262&subd=rehmangul&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://rehmangul.wordpress.com/2009/04/29/sharepoint-service-pack-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/91d0677ad58d84af0a601b52b33e250c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rehmangul</media:title>
		</media:content>
	</item>
		<item>
		<title>SharePoint Site Backup and Restore</title>
		<link>http://rehmangul.wordpress.com/2009/04/18/sharepoint-site-backup-and-restore/</link>
		<comments>http://rehmangul.wordpress.com/2009/04/18/sharepoint-site-backup-and-restore/#comments</comments>
		<pubDate>Sat, 18 Apr 2009 14:00:45 +0000</pubDate>
		<dc:creator>rehmangul</dc:creator>
				<category><![CDATA[Blogroll]]></category>
		<category><![CDATA[MOSS]]></category>
		<category><![CDATA[MS SharePoint Sever]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[sharepoint]]></category>
		<category><![CDATA[sps]]></category>
		<category><![CDATA[Custom Sharepoint]]></category>
		<category><![CDATA[customise]]></category>
		<category><![CDATA[errors]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[integration]]></category>
		<category><![CDATA[Internet Explorer Errors]]></category>
		<category><![CDATA[moss customisation]]></category>
		<category><![CDATA[moss errors]]></category>
		<category><![CDATA[Service Unavailable]]></category>
		<category><![CDATA[SharePoint Customization]]></category>
		<category><![CDATA[sharepoint errors]]></category>
		<category><![CDATA[sharepoint site backup and restore]]></category>
		<category><![CDATA[tips and tricks]]></category>
		<category><![CDATA[workarounds]]></category>

		<guid isPermaLink="false">http://rehmangul.wordpress.com/?p=209</guid>
		<description><![CDATA[If  you are moving your site from testing to production, site backup and restore (using STSADM command line tool)  is the way to go. Other ways include SQL Server, Sharepoint Designer, DPM etc. However, site backup and restore using STSADM is probably the easiest and fastest one.
Backup the site using the following STSADM Command:
Stsadm –o backup –url http://&#60;server name&#62;:&#60;port&#62; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rehmangul.wordpress.com&blog=637369&post=209&subd=rehmangul&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>If  you are moving your site from testing to production, site backup and restore (using STSADM command line tool)  is the way to go. Other ways include SQL Server, Sharepoint Designer, DPM etc. However, site backup and restore using STSADM is probably the easiest and fastest one.</p>
<p><strong>Backup the site using the following STSADM Command:<br />
</strong>Stsadm –o backup –url <a href="http://&lt;server">http://&lt;server name&gt;:&lt;port</a>&gt; -filename &lt;path\name to be used for the backup file&gt;</p>
<p><strong>Example:</strong><br />
Stsadm –o backup –url <a href="http://vanillargk:5555">http://vanillargk:5555</a> –filename e:\backup5555.bak</p>
<p>After the backup has been completed, “Operation Completed Successfully” message should be displayed.<br />
 <br />
<strong>Create a new Web Application for restoring the site:<br />
</strong>Go to Central Administration -&gt; Application Management -&gt; under SharePoint Web Application Management -&gt; click Create or Extend Web Application. Fill in the required information, click Ok and wait until the progress continues.</p>
<p>Once the new web application is created, run the following STSADM command and restore the site using the backup file created above.</p>
<p>Stsadm –o restore –url <a href="http://&lt;server&gt;:&lt;port">http://&lt;server&gt;:&lt;port</a>&gt; -filename &lt;path\name of the backup file&gt;<br />
Stsadm –o restore –url <a href="http://vanillargk:6666">http://vanillargk:6666</a>  –filename e:\backup5555.bak</p>
<p>Restored site should be up and running.<br />
 <br />
If it is not (and you are receiving weird errors in your browser), keep reading:</p>
<p>Now it could be the case that you have customized your site. So, we must deploy those customizations properly for the site to work as expected. <strong>This is typically a scenario while moving your site from Testing to Production environment.</strong> First you have to add the solutions (if any created) to the farm.</p>
<p><strong>Add a Solution to the SharePoint Farm:<br />
</strong>Add the solution package to the farm by running the following commands. Make sure full path of WSP file is supplied.<br />
 <br />
stsadm –o addsolution –filename &lt;path to mysolution.internet.test.wsp&gt;</p>
<p><strong>Deploy the Solution to the restored site:</strong><br />
Now we need to deploy the newly added solution to our restored site. Click the solution name and select ‘Deploy’ button from top. Select the appropriate web application in the deployment settings and click OK. This will take several minutes to deploy <strong>mysolution.internet.test.wsp</strong> resources (list templates, features, assemblies, master pages, styles). Once the solution has been deployed, reset IIS to ensure all deployed changes are picked up by the web application.</p>
<p>You can also deploy the solution from the command line with the following SharePoint admin command.</p>
<p>stsadm -o deploysolution -name mysolution.internet.test.wsp -url &lt;site&gt; -immediate -allowgacdeployment –allowcaspolicies</p>
<p>Make sure all your assemblies (DLLs) are available in Global Assembly Cache (GAC) usually placed at c:\windows\assembly.  </p>
<p> <strong>Activate features installed by mysolution.internet.test.wsp solution package:<br />
</strong>Go to the newly restored site, click Site Actions, click Site Settings, click Site Collection Features. Click Activate button to activate any Site Collection Feature.</p>
<p>Go to the newly restored site, click Site Actions, Site Settings, Site Features.<br />
Click Activate button to activate any Site Features.</p>
<p><strong>Update Web.Config file:<br />
</strong>It will be usually a case that your solution package will deploy a few DLLs with it. So we need to add all those Safe Control entries, Assembly Bindings, Keys and any other web.config changes to our newly restored sites&#8217;s web.config. Weird browser errors that I mentioned above usually appear due to these missing entries in web.config, specially when you are restoring on the same machine/server&#8230;&#8230;.As assemblies will already be there in the GAC if the restore operation was performed on the same machine&#8230;.you just need to make web.config entries to the restored site&#8230;..adding and deploying of the solution could be skipped. So lets do the copy paste operation from the old web.config to the new web.config. Just compare the two web configs and copy/paste the missing entries into the new. </p>
<p><strong>Web.config file could be found at the following path:</strong><br />
&lt;drive letter&gt;:\Inetpub\wwwroot\wss\VirtualDirectories\&lt;port number&gt;\web.config<br />
 <br />
<strong>Example:<br />
</strong>C:\Inetpub\wwwroot\wss\VirtualDirectories\6666\web.config <br />
 <br />
Usually these changes will include Safe Controls, AssemblyBindings, PageParserPaths and Keys etc. After making these changes your site should be ready in Production.</p>
<p>If you are worried about the bad habit of Moss saving absolute URLs for the page layout in the properties of a publishing page, then relax, solution is already in the market:</p>
<p><a href="http://blogs.technet.com/stefan_gossner/archive/2009/05/01/red-is-green-up-is-down-and-the-unsupported-suddenly-becomes-supported.aspx">http://blogs.technet.com/stefan_gossner/archive/2009/05/01/red-is-green-up-is-down-and-the-unsupported-suddenly-becomes-supported.aspx</a></p>
<p>Hope this helps&#8230;</p>
<p>P.S. If you need to know more, important information in the comments below.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rehmangul.wordpress.com/209/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rehmangul.wordpress.com/209/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rehmangul.wordpress.com/209/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rehmangul.wordpress.com/209/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rehmangul.wordpress.com/209/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rehmangul.wordpress.com/209/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rehmangul.wordpress.com/209/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rehmangul.wordpress.com/209/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rehmangul.wordpress.com/209/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rehmangul.wordpress.com/209/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rehmangul.wordpress.com&blog=637369&post=209&subd=rehmangul&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://rehmangul.wordpress.com/2009/04/18/sharepoint-site-backup-and-restore/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/91d0677ad58d84af0a601b52b33e250c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rehmangul</media:title>
		</media:content>
	</item>
	</channel>
</rss>