New answers tagged object-model
-1
There are several factors that needs to be considered before you are planning to move your site from 2007 to 2010 . Please check the below link explaining the step by step process of doing it. Link for Solution...The method shows the DB Attach method.
1
Moving sites from SP 2007 to SP 2010 would require an upgrade of the content (content db). Plus both enviornments will need to be in sync before the migration can take place i.e. all the custom solutions will need to be deployed in SP 2010, all your custom site defs etc.
This article shows how you can attach a content db from sp2007 to sp2010.
...
0
http://www.dmcinfo.com/Latest-Thinking/Blog/articleType/ArticleView/articleId/8471/Using-SPWebProcessBatchData-to-Update-Document-Library-Properties.aspx
Summary:
When running ProcessBatchUpdate on a document library you need to include {0} and pass the server relative url of the file in each item. Use SPListItem.File.ServerRelativeUrl or ...
1
var webService = SPFarm.Local.Services.OfType<SPWebService>().FirstOrDefault();
if (webService != null)
{
var webApp = webService.WebApplications.FirstOrDefault(wa => wa.GetResponseUri(SPUrlZone.Default).Port == 80);
if (webApp != null)
{
Uri webAppUri = new Uri(webApp.GetResponseUri(SPUrlZone.Default).AbsoluteUri);
1
Dave is right. You might can try to use the migrateuser functionality to see if that will fix the sids for you. Stsadm or powershell
http://blogs.msdn.com/b/sowmyancs/archive/2012/01/07/migrate-users-groups-powershell-script.aspx
3
To view who has opened documents, you can run a Audit Log report. This is can achieved using the Audit Log reports
You go to the following setting: Site Actions > Site Settings > Site Collection Administration > Audit Log reports.
Check Configure audit settings for a site collection
0
A sort of tracking is achieved via the Auditing features that must be enabled at site collection level, which also offers a quite rich object model to extract these statistics by code (had a similar answer here SP2010: Best Practices to use SPAudit). A note of warning though - enable it selectively after proper consideration as this could get quite heavy ...
Top 50 recent answers are included