Thursday, December 27, 2012

Migrate from MOSS 2007 to SharePoint 2010 - Step by Step



In this article, I'm walking through Migrating from MOSS 2007 to SharePoint 2010 using database attachment method. 
Overview
1.  Run Preupgradecheck in MOSS 2007 server.
a.   Analyze & Fix the issues.
2.  Take the back up of content database from MOSS 2007.
3.  Restore the content databases backup to SQL Server of SharePoint 2010.
4.  Create web application in SharePoint 2010.
5.  Attach the MOSS 2007 content databases to SharePoint 2010.
6.  Post Migration fixes
1. Run preupgradecheck in MOSS 2007 Server
This will be our primary analysis and reporting tool providing us with invaluable information regarding your SharePoint 2007 farm and actions that may be required to be taken prior to upgrading to SharePoint 2010. It is better to have October CU:http://support.microsoft.com/kb/976730/ where the preupgradecheck is enhanced further. 

Run the preupgradecheck as below in command prompt:

stsadm.exe -o preupgradecheck

https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEheIpEP9ZUaxmJPTdJPouTjj33oUX7tFupEo_Puye04zj05KeEV9lugLCLWKagy7Z8sH1UCxzWWrcYkyG16p7saHouAUR4ocBDx9mv3y8zPjWFbIaPtsfwN9DWkG_0V43qAzDKGbRQgUvc/s1600/MOSS+2007+to+SharePoint+2010+Migration+%25281%2529.png
Once you get "Operation completed successfully", it will launch the “SharePoint Products and Technologies Pre-Upgrade Check Report”.  It can also be located under the following location;
%COMMONPROGRAMFILES%\Microsoft Shared\Web Server Extensions\12\Logs\
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCsxoSkO3VaXjEHxMGcz9Gx5qYaK5LBdB1va-FV54XLng0uNtmQt5mu4klrIOXRMTscHjnKwB_c2PXWsWI8kJqAXrp7LPQtW-WIlokqV_5cwWxmEFK9Md-G1ZOsXLfFXbyxlKlcXaLeCI/s1600/MOSS+2007+to+SharePoint+2010+Migration+%25282%2529.png
1(a).   Analyze the report and Fix the following settings:
·       Identify any third party components used and deploy them to SP2010. E.g. Nintext, 3rd party features, including web parts, solutions and custom workflows
·      Setup Incoming/Outgoing email settings in SP2010 environment
·      Modified Web.Config entries
·      Alternate Access Mappings (AAM)
·      Replicate Quota templates & Included paths to SP2010
·      Fix “Content database with modified database schemas” issue when upgrading to SharePoint Server 2010 :http://sharepointnomad.wordpress.com/2010/12/12/fix-content-database-with-modified-database-schemas-issue-when-upgrading-to-sharepoint-server-2010/
2. Take the Content Database Backup from MOSS 2007
Set the database to read-only before taking backups.
Set the database as read only:
1.  On the MOSS 2007’s database server, click Start, point to All Programs, Microsoft SQL Server, and then click SQL Server Management Studio.https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivl2vYbf0ZnrIc8qSE-A7UVzVMA993Hons-pPXBov-DmRGAgl_H2_7mNWNayFrXJIF-MnN-lzTnr4fGELvzthGo-K_X7L7RxcBFzBEiF_CNmvLdEgAR9Z5yjb35H0pwapm89qv40YRPAk/s1600/MOSS+2007+to+SharePoint+2010+Migration+%25283%2529.png

https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEih2RFlxuDbWMq2V5UkBjlMPtPzDeJZ0WwD1qq8yoQeO0Sjv2qtRrQJZm2eX0Uud9VH3aim98DYlWkQC-vvCzI7GqoDj98nTuL5b3G41O3sf-EFvoa08H0ALwt4ej3sQLmMAGdYb7kL2z4/s1600/MOSS+2007+to+SharePoint+2010+Migration+%25284%2529.png

2.  Traverse to Databases node by expanding the tree.
3.  Right-click the name of the database that you want to set to read-only, and then click Properties.
4.    In the Properties dialog box, click the Options tab.
      5.   Under State, select the Database Read-only to True, and then click OK
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCOAv7WMfc7x2lxYBlI2MK9yVqrd-LqzqOy0rIZZtIkXgkfKwDkQ0Ou0booisekrt30u56NhYDtPPTJlcS2MHVwJQI9HkqHTVZOVXE80PqaQwSAxe6adMhMEMmy94sY45VO0Hx0s6VXOo/s1600/MOSS+2007+to+SharePoint+2010+Migration+%25285%2529.png

Backup the database:
Follow these steps to take back-up:
1.  Traverse to Databases node by expanding the tree.
2.  Right-click the database you want to back up, point to Tasks, and then click Backup Databasehttps://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhGB0ICGHi85gXj3ZK_j-fIqGnXfzOHtD2danZvu2dRIRLFo6auvBtzRLdPmSAA5RDehkZC5kCNS4hnyRthK0zyFFzHPKhF1vDqMRbqJc5Wp6jA6_o7Ko94XpEXIqjgGkDZYCwf2iz6zGM/s1600/MOSS+2007+to+SharePoint+2010+Migration+%25286%2529.png
 3. In the SQL Server Backup dialog box, specify a name for the backup, select Back-up type - Full, select a destination, and then Click OK to start the backup process.
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFN6ns0X_SaLSRJw4edDJvZBrqTjtdpjIY4t99Q7oakF_GjwjEjf1vZQfin_A3NZ20qRASm_BbbHCO1FYkJ5fX1Ucso-op36_l8zYQqOZyApiLwMAGphR8bKzyZ9AG3PjiAomk5WAgoAk/s1600/MOSS+2007+to+SharePoint+2010+Migration+%25287%2529.png

https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjiL7Rc1p-GAYhXaaDAGesotd5qJdnu7fzhntT25OlvDVKCkw0Na_HyTXvAKmGoaoWhQVDZvekhzu5p1rpMLAkEYPU4in6pZLW8SskWVBRJnprL7JlZjVwjpRepdMl0Y93tfkGAkWIR4bE/s1600/MOSS+2007+to+SharePoint+2010+Migration+%25288%2529.png
 4. Repeat these steps to back up the databases that are used by MOSS 2007 in the environment.
3. Restore the back up on SharePoint 2010’s SQL Server:
1.  Open the SQL Server Management studio, traverse to “Databases” node. Then right click the “Databases” node and choose “Restore Database…” from the context menu.https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjec_aBER9cdAE1IIytera7ETuU-ha0ivjkwgkdzhOjBYdaEdhUPMtxMT9yAmygwNx9kY8evuvdjuUb41KPN8i1yvB40JkGTY_v-bmjsXruYkvk0lDJEeAkmFBtKL1bemkCd6-NlPS3u_g/s1600/MOSS+2007+to+SharePoint+2010+Migration+%25289%2529.png
2.  Specify the Database name, Restore Source, Destination, File names in the screens.
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjmwG6F9XLHxy1hMoKFGF11ZX8340qBP3SljEXucwygqcMueKqA2keLs32JDu68KAwdxH7chvBI4zhmsvmt7qXtmeAp4KwCD1gPMjlaGkr8ZBCrCQuo_e8ioe9a6kI4xay7mHW_-xSbfxw/s1600/MOSS+2007+to+SharePoint+2010+Migration+%252810%2529.png
3. Click “OK” to start the restore operation and Wait for the restore to complete! The time of restoring database depends upon the database size and server’s capacity.
4. Create web application in SharePoint 2010
1.  In the SharePoint Central Administration, click on “Application Management” and click on “Create or extend Web application” under “SharePoint Web Application Management”.
2.  Again click on “Create Web application”. Set the settings according to the needs sayhttp://SharePoint2010.company.com
3.  Don’t create any site collection.
4.  Install & Copy the solutions, file system changes (like images, themes) from MOSS 2007 to MOSS 2007 servers.
Remove content database of the newly created web application in SharePoint 2010
Now, we need to delete the content db of the newly created web application in order to avoid any URL conflicts. Run the below stsadm command:

stsadm -o deletecontentdb -url http://SharePoint.company.com -databasename<MOSS2007_Migration_Content> 
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhOvqygpTBMlbG_anjU7D8q3Lcpc2QuBiNmAz6dnaOgmsFTIsUA9xInPe-eIBPVYgwmuKHx05EoXOMG8BFkzrYFnqwIT41u60E3RlBUEjnQRJSMLvvvpCKek3ZhHKyU8KC3sPbgG4YlXdc/s1600/MOSS+2007+to+SharePoint+2010+Migration+%252811%2529.png

5. Attach restored database with the newly created web application in SharePoint 2010
Test the content database
Before attaching the content databases to the Web applications, use the Test-SPContentDatabase PowerShell cmdlet to verify that all of the custom components that you need for that database.

Test-SPContentDatabase -Name <DatabaseName> -WebApplication<URL>

Delete the corrupted objects

stsadm -o databaserepair -url  <URL of SharePoint site>  -databasename<name of database> -deletecorruption

Finally, we need to attach the restored MOSS 2007 database to SharePoint 2010 by running the STSADM
1.  The Content DB containing the root site collection is always applied first.
2.  The other content DBs can be applied in any order.
Important:
Attach the Content DB of the Root Site collection First. And then Attach the Content DBs of other Site Collections.

stsadm.exe -o addcontentdb -url http://SharePoint.company.com -databasename<MOSS2007_Portal_Content>

https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPOLqUwSfv2OMLms2RLBIL1xLgl8wiHZtiVrTfZsiwqhvcRG6KFeO8fxJdbPGdqoHSE06jit0B6qAF-v6Fkf1pse76zXhJ9NnJJZpfprkec04JSKWV_jVH8hYBPuncCy5-ocVR1KvFSpA/s1600/MOSS+2007+to+SharePoint+2010+Migration+%252812%2529.png

 Or you can use the PowerShell cmd-let: Mount-SPContentDatabase

Mount-SPContentDatabase -Name <DatabaseName> -DatabaseServer<ServerName> -WebApplication<URL>

Post Migration fixes
Once the content database attachment process is over, we have to manually fix the below things:

·      Remove any un-used/classic web parts http://salaudeen.blogspot.com/2011/08/remove-webpart-programatically.html
·      Perform the Visual upgrade to get the SharePoint 2010 Look and Feel if needed.
Unit Test:
Browse the migrated sites in SharePoint 2010 and check their look& feel and functionality. 
Before and After:
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi8NEcg_8p-Z3U8azOSW7OsgtYXvPU78Xljgc0GYSoTRTg73ADNliGoV3C9AdPmta0sahoNDg9cApyp4gt4MkLZ9DrvGqwSR_SmBYpua1ywGud00UwqBx2mNBgdVWFbtFuO8bORo7VXGx0/s1600/after2.png

Serge Luca's Blog (SharePoint MVP)

http://sergeluca.wordpress.com/

Sunday, December 23, 2012

Major functional areas of a SharePoint interface

Figure 2. Major functional areas of a SharePoint interface

Major functional areas of SharePoint interface

Table 2. Major functional areas of a SharePoint interface

Figure Label Functional Area Description of Functionality
A Server ribbon The entire top portion of the UI is part of the ribbon. What is displayed depends on the user's current context.
B Site Actions The main menu for interacting with SharePoint, used primarily by content authors and administrators.
C Global breadcrumbs control A new implementation of the global breadcrumbs control that was first introduced in Microsoft Office SharePoint Server 2007. When clicked, the icon displays a dynamic HTML that shows a hierarchical view of the site. Use it to navigate up levels of the hierarchy from the current location in the hierarchy.
D Page State Action button The button used to control the page state, and that typically displays a shortcut to edit or save the current page.
E Ribbon contextual tabs Tabs present menus that are specific to the functions of the SharePoint site. What is displayed changes based on what the user is interacting with on the page. Some of the items will not be used on every site.
F Welcome menu This menu shows the welcome message and enables the user to view their profile, to sign out, and to sign in as a different user. If other language packs are installed, the functionality to change the user's language is also available here. When the user is not logged on, the Welcome menu also shows the Sign In link.
G Developer Dashboard button The button that opens the Developer Dashboard that typically appears at the bottom of the screen. The Developer Dashboard contains statistics about the page rendering and queries. This icon is shown when the Developer Dashboard's display level is set to OnDemand (other options include On and Off). Administrators can set the Developer Dashboard display level by using Windows PowerShell or by using the SharePoint API.
H Title logo Sometimes referred to as site icon. It typically shows the SharePoint site icon, but can display a user-defined logo instead.
I Breadcrumb This is a breadcrumb-like control that is specific to the v4.master master page. It includes the Site Title and the placeholder for Title in Title Area, which typically contains the Page Title. The Site Title is linked to the top level of the site.
J Social buttons Used for marking items as liked and for adding tags and notes to content.
K Global navigation Sometimes referred to as the Top Link Bar or Top Navigation Bar, it is the primary horizontal navigation mechanism for the site.
L Search area The search box is used to enter terms for performing searches on the site.
M Help button The help button links to the SharePoint 2010 help documents.
N Quick Launch Provides current navigation. Sometimes referred to as the Left Navigation. It is the secondary or vertical navigation mechanism of the pages related to the current location.
O Tree View Provides a Windows Explorer–style representation of the site. Because of its appearance, the tree view is often better suited for intranet sites.
P Recycle Bin Provides a link to the Recycle Bin for the site, which is the area where items are stored when deleted. Typically, this is better suited for intranet sites.
Q All Site Content A link to the All Site Content page. This was the View All Site Content link in Office SharePoint Server 2007. Typically, this is better suited for intranet sites.
R Body area Represents the main content placeholder that includes all of the content that is specific to the page. Required for rendering the content of the page.