Showing posts with label Sharepoint Best Practices. Show all posts
Showing posts with label Sharepoint Best Practices. Show all posts

Saturday, February 21, 2009

How to get SPList instance

Usually the developers write code like this:

using (SPSite siteCollection = new SPSite(siteUrl))
{
    using (SPWeb web = siteCollection.OpenWeb())
    {
        SPList myList = web.Lists["ListTitle"];
    }
}

It seems good, consistent with best practices http://msdn.microsoft.com/en-us/library/aa973248.aspx#sharepointobjmodel__codingtechniques, but whether it is really the best?

In this case web.Lists["ListTitle"]; loads metadata for all lists in this SPWeb and than compares the titles (SPList.Title) of all objects in the collection. Finally it returns the list matching the criteria.

Let’s see the code below.

using (SPSite siteCollection = new SPSite(siteUrl))
{
    using (SPWeb web = siteCollection.OpenWeb())
    {
        SPList myList = web.GetList(“http://site_url/lists/ListTitle/AllItems.aspx”);
    }
}

In this case the Object Model at first gets the List ID (GUID) from the URL, than loads the metadata only for this specific list.

Yes, that is not a big performance problem if you have a few lists in your SPWeb. But let’s consider what will happen if there are 1000 lists per site…?

Friday, February 6, 2009

Sharepoint Admin Consideration Guide

Guide to the most important things to consider before deploying Office SharePoint Server or Windows SharePoint Services, including server administration, governance, branding, and development.

Available in .docx, .pdf and .xps formats

http://www.microsoft.com/downloads/details.aspx?FamilyID=4ce750af-5564-4b92-b74b-703d4c150ba6&DisplayLang=en

Sharepoint Administration Toolkit v3.0

Microsoft just released  the third version of SP Administration Toolkit. The new added feature is Sharepoint Diagnostics (SPDiag) tool, which can:

  • Collect IIS and ULS log files, performance counter data, event logs, and WMI instrumentation data from a SharePoint farm.
  • Filter data to show granular information related to specific servers, Web applications, HTTP requests, event IDs, URI queries, and almost any other data points captured through supported channels.
  • Create custom reports that can help reveal performance trends over time.
  • Create snapshots of your SharePoint farm that include detailed information about your farm’s hardware, installed software and logical topology.
  • Export collected data and reports that can be sent to Microsoft support personnel.

The user guide for SPDiag is available for download here: http://www.microsoft.com/downloads/details.aspx?FamilyID=1c222804-51c7-4bb5-ae3d-89c68ad27a78&displaylang=en

Another enhancement in the toolkit is updated setup program, which now works with User Access Control and is no longer need to run it as administrator.

Downloads:

Microsoft Sharepoint Administration Toolkit v3.0 x86

Microsoft Sharepoint Administration Toolkit v3.0 x64

Tuesday, February 3, 2009

Design and Build Sites with MOSS 2007

Technet published this guide to provide guidance, that can help developers and IT pros to build custom enterprise sites by using MOSS 2007 – company portal or internet sites.

Custom sites based on MOSS 2007 combine coded elements, such as workflows, document converters, and Web Parts, along with content, such as master pages, layout pages, graphics files, and Web pages. Best practices for developing these sites include setting up multiple environments for developing, integrating, piloting, and deploying coded elements and content from one environment to another.

Download the guide here: http://go.microsoft.com/fwlink/?LinkId=110087

Saturday, January 17, 2009

Sharepoint Best Practices

 

Very easy to use portal for best practices on TechNet: http://technet.microsoft.com/en-us/office/sharepointserver/bb736746.aspx 

 

Categories:

Operational Excellence

Team Collaboration Sites

My Sites

Publishing Portals

Search

Capacity Management

Developing Custom Applications

Additional Resources

Friday, January 16, 2009

External Collaboration Toolkit for SharePoint

Organizations need tools to simplify the process of collaborating with people outside their firewall. Currently, many such organizations collaborate using methods that are not efficient or secure, such as unencrypted e-mail and instant messaging. The External Collaboration Toolkit for SharePoint includes software and guidance to quickly and easily deploy a collaboration environment based on SharePoint Products and Technologies that you can use to collaborate with partners across the Internet.

Solution features include a setup wizard to automate the setup process, Web Parts to automate the process of provisioning new site collections and new users, form-based logon for external users, and automated password reset functionality.

This solution accelerator is a collection of software and guidance that you can use to easily deploy a SharePoint-based environment for collaboration with people outside your firewall. The accelerator allows users to create collaboration environments that use the familiar SharePoint interface.

External Collaboration Toolkit for SharePoint

Downloads for offline viewing