What’s New in Microsoft SharePoint 2010

28 April, 2010 (14:34) | Sharepoint 2010 | By: G Vijai Kumar

People who are looking for E-Learning courses and to know what’s new in Sharepoint 2010, please follow the links below and sign up for the courses, even you may download the entire course for offline viewing.

Microsoft E-Learning: What's new in Sharepoint 2010

Microsoft E-Learning: What's new in Sharepoint 2010?

Clinic 10277: What’s New in Microsoft SharePoint 2010 for Developers
Developing SharePoint 2010 Solutions by Using Visual Studio 2010

  • Creating SharePoint 2010 Solutions by Using Visual Studio 2010
  • Deploying SharePoint 2010 Solutions by Using Visual Studio 2010

Integrating New Development Features in SharePoint 2010 Solutions

  • New Process Capabilities for SharePoint 2010
  • Developing New User Interfaces for SharePoint 2010
  • Using LINQ to SharePoint

Developing Remote Clients for SharePoint 2010

  • Developing Remote Clients by Using the Client Object Model
  • Accessing SharePoint Data in Silverlight Applications

Incorporating External Data in SharePoint 2010 Solutions

  • Configuring Business Connectivity Services for SharePoint 2010

Clinic 10279: What’s New in Microsoft SharePoint 2010 for IT Professionals

Introduction to SharePoint 2010

  • Fundamentals of SharePoint 2010
  • SharePoint 2010 User Interface Experience

Managing Data in SharePoint 2010

  • Using IFilters
  • Managing Lists with Large List Resource Throttling
  • Using Windows PowerShell
  • Backing Up and Recovering Data

Monitoring Data in SharePoint 2010

  • Performance Tracking in SharePoint 2010
  • Using the SharePoint Best Practices Analyzer

A quick look on WSS Out Of Box web services – Part 2

19 April, 2010 (09:31) | MOSS - Object Model | By: G Vijai Kumar

In my previous post you can have a quick look on WSS Out Of Box web services – Part 1

In this post once again I want to update few WSS web service handy programs with minimum lines of code.

Before executing the code first of all add web reference http://servername:port/_vti_bin/Webs.asmx
In this example I have given the web reference folder name as myWebswebservice

Show all subsites:
static void Main(string[] args)
{
myWebswebservice.Webs allWebs = new myWebswebservice.Webs();
//credentials for password based authentication
//System.Net.NetworkCredential mycredentials = new System.Net.NetworkCredential(“g.vijaikumar”, “mypassword”, “fivenumber”);
//allWebs.Credentials = mycredentials;
//using system credentials of the application
allWebs.Credentials = System.Net.CredentialCache.DefaultCredentials;
try
{
string webTitle = null;
XmlNode myNode = allWebs.GetAllSubWebCollection();
XmlNodeList nodes = myNode.SelectNodes(“*”);
foreach (XmlNode node in nodes)
{
Console.WriteLine(webTitle + node.Attributes["Title"].Value);
}
}
catch (Exception ex)
{
Console.WriteLine(ex.ToString());
}
Console.WriteLine(“Press any key to continue…..”);
Console.ReadLine();
}

How to find Sharepoint version

8 April, 2010 (06:27) | MOSS - General | By: G Vijai Kumar

Normally to find the Sharepoint version we approach Central administration page Central Administration > Operations > Servers in Farm

One more method using SQL query

SELECT Version FROM Versions WHERE VersionId = ‘00000000-0000-0000-0000-000000000000′

Also you can find Sharepoint version programmatically using API

using (SPSite site = new SPSite(“<Central Administration Site URL…..>”))
{
SPFarm farm = site.WebApplication.Farm;
Console.WriteLine(SPWebService.ContentService.Farm.BuildVersion.ToString());
}
Console.WriteLine(“Press any key to continue…..”);
Console.ReadLine();

SharePoint 2010 & Office 2010 Launch

7 April, 2010 (08:36) | Announcements | By: G Vijai Kumar

Microsoft has made an official announcement that on May 12th, 2010 is the launch date for SharePoint 2010 & Office 2010

Let us join Microsoft virtually on May 12th at 11am EST and listen to Stephen Elop, President of the Microsoft Business Division, use the following link to register for the event Microsoft Office 2010 and SharePoint 2010

A quick look on Sharepoint object model programs – Part 2

29 March, 2010 (12:04) | MOSS - Object Model, MOSS - Quick Look | By: G Vijai Kumar

In my previous post you can have a quick look on Sharepoint object model programs – Part 1

Here, once again am going to post Sharepoint object model programs (part 2) with minimum lines of code and are really handy, which are actually most useful even.

Show only BLOG sites:

//STS#0 – Team Site
//STS#1 – Blank Site
//STS#2 – Document Workspace
//MPS#0 – Basic Meeting Workspace
//MPS#1 – Blank Meeting Workspace
//MPS#2 – Decision Meeting Workspace
//MPS#3 – Social Meeting Workspace
//MPS#4 – Multipage Meeting Workspace
//WIKI#0 – Wiki
//BLOG#0 – Blog

static void Main(string[] args)
{
SPSite site = new SPSite(“http://servername:port”);
foreach (SPWeb web in site.AllWebs)
{
string template = web.WebTemplate + “#” + web.Configuration;
if (template.ToUpper() == “BLOG#0″)
{
Console.WriteLine(web.Title);
}
}
Console.WriteLine(“Press any key to continue…..”);
Console.ReadLine();
}

Show services and status in Sharepoint server farm:
static void Main(string[] args)
{
SPServiceCollection services = SPFarm.Local.Services;
foreach (SPService service in services)
{
Console.WriteLine(“Service Name: {0}”, service.Name);
Console.WriteLine(“Service Status: {0}”, service.Status);
Console.WriteLine(“————————————-”);
}
Console.WriteLine(“Press any key to continue…..”);
Console.ReadLine();
}

Adding/Retrieving values to property bag:
static void Main(string[] args)
{
using (SPSite siteCollection = new SPSite(“http://servername:port”))
{
using (SPWeb site = siteCollection.RootWeb)
{
site.Properties.Add(“TempKey”, “TempValue”);//Adding value
site.Properties.Update();

Console.WriteLine(site.Properties["TempKey"]);//Reading value
}
}
Console.WriteLine(“Press any key to continue…..”);
Console.ReadLine();
}

Read files in a folder:
static void Main(string[] args)
{
SPSite site = new SPSite(“http://servername:port”);
SPWeb web = site.OpenWeb();
SPFolder folder = web.GetFolder(“Shared Documents”);
SPFileCollection files = folder.Files;
foreach (SPFile file in files)
{
Console.WriteLine(file.Name.ToString());
}
Console.WriteLine(“Press any key to continue…..”);
Console.ReadLine();
}

Get content database for all site collections:

static void Main(string[] args)
{
SPSite site = new SPSite(“http://CentralAdminSiteURL”);
SPFarm farm = site.WebApplication.Farm;
SPWebService service = farm.Services.GetValue(“”);
foreach (SPWebApplication webapp in service.WebApplications)
{
foreach (SPSite mysite in webapp.Sites)
{
Console.WriteLine(mysite.Url+” —– “+ mysite.ContentDatabase.Name);
}
}
Console.WriteLine(“Press any key to continue…..”);
Console.ReadLine();
}