Sunday, December 07, 2008

SPListItem - SystemUpdate, UpdateOverwriteVersion, Update

If you have ever tried to figure out the various SPListItem Update methods the table below, stolen from this blog, gives you an excellent overview:























MethodbSystem bPreserveItemVersion bNoVersion
SystemUpdate()truefalsefalse
SystemUpdate(false)truetruefalse
UpdateOverwriteVersion()falsefalsetrue
Update()falsefalsefalse

Friday, December 05, 2008

SPRequest object was not disposed before the end of this thread

Analysing SharePoint logfiles you might find a lot of Potentially excessive number of SPRequest objects warnings in the logfile.

In order to figure out the reason behind this warning you can add a registry key thereby getting a full stack trace as outlined in this blog.