There are some scenarios in day to day development, where current changes need to revert to its previous working condition. This can be achieved by finding the correct Version from Version-History of the item and restore it accordingly. The below code snippet is just for information, for files in document library and has the same approach [...]
Archive for the ‘SharePoint Administration’ Category
17 Oct
Export Import Page
Export Page One problem with STSADM tool is it cannot export List Item (like Publishing Pages…) , It’s better to do export using object model and then import in production environment. Options to export are :- SPDeploymentObjectType.File SPDeploymentObjectType.Invalid SPDeploymentObjectType.Folder SPDeploymentObjectType.List SPDeploymentObjectType.ListItem; SPDeploymentObjectType.Site SPDeploymentObjectType.Web SPSite site = new SPSite(SiteName); SPWeb web = site.OpenWeb(); SPList list = web.Lists["Pages"]; SPExportObject [...]
2 Sep
Automate Metadata Property Creation and Mapping
Metadata Property Creation and Mapping will be available in codeplex soon……….
17 Jun
SharePoint 2010 Backup, Recovery, Availability, and Disaster Recovery
SharePoint Server 2010 provides two backup systems: 1. Farm 2.Granular Farm Backup The entire server farm is backed up, including settings from the configuration database. It supports both Full and differential backup. The farm backup architecture in SharePoint Server 2010 starts a Microsoft SQL Server backup of 1. Content DB 2. Service application DB 3. [...]