Skip to main content

Thinking out aloud - Dave Hunter's SharePoint Blog

Go Search
Home
Blog
  

Locations of visitors to this page


 Useful Links

  Microsoft UK events
  SharePoint 2007 on CodePlex
  SharePoint Community Portal
  SharePoint User Group
  SharePoint Community Portal
  SharePoint Pedia
  SharePoint MSDN Forums
  SharePoint University
Home > Thinking out aloud - Dave Hunter's SharePoint Blog > Posts > SharePoint 2007 Versions
My thoughts and findings on Microsoft Information worker technologies, including MCMS and SharePoint 2007 (MOSS).
SharePoint 2007 Versions
Before Christmas one of my clients had a major disaster with their SharePoint environment.  Through implementing a good disaster plan we had backups of the databases and SharePoint farm.  Unfortunately the server that went down was hosting the Central Administration.  We decided to rebuild the environment and restore the content (sites).
 
When we restored the content database, we received an error about cannot install a newer version of SharePoint.  After some googling and investigation we found out that the current SharePoint version was 12.0.0.4518 and the content database version was 12.0.0.6021.
 
We took a step back and evaluated what happened to the SharePoint environment since the clean install.  SharePoint RTM starts out as 12.0.0.4518.  We had applied a hotfix for security and the backup should of been taken at that state.  So we applied the hotfix, the number incremented but didn't take it up to 12.0.0.6021.
 
After some more googling for any major public hotfixes and looking for the results, we managed to get the version up to 12.0.0.6020.
 
Our saviour was the October public update which incremented the version to 12.0.0.6039.  The moral of the story is to implement governance on the SharePoint environment
  • Keep track of updates to .NET and SharePoint.
  • Only install a hotfix unless you really need it.
  • Backup the SharePoint farm and databases as hotfixes can not be removed.

How do you find out what version of SharePoint you are running?

The first approach is to open a web browser and got to the site settings page (Site Actions > Site Settings > Modify All Settings).

The second approach is against the databases.  Open SQL Server Management Studio, Connect to the server, new query, run the following:

SELECT [VersionId]
      ,[Version]
      ,[Id]
      ,[UserName]
      ,[TimeStamp]
      ,[FinalizeTimeStamp]
      ,[Mode]
      ,[ModeStack]
      ,[Updates]
      ,[Notes]
  FROM [SharePoint_Config].[dbo].[Versions]
  WHERE VersionId = '00000000-0000-0000-0000-000000000000'
  ORDER BY Id DESC

This returns (columns reduced for readability):

VersionId Version Id UserName Updates
00000000-0000-0000-0000-000000000000 12.0.0.6219 4 MOSS\user 3
00000000-0000-0000-0000-000000000000 12.0.0.4518 1 MOSS\user 2

The top row is the latest version.  The query is performed on the SharePoint Configuration database.  If you have called this database something instead of "SharePoint_Config" change the query to reflect this.

You can also look at the versions for Content Databases, by changing the database name.  For example: FROM WSS_Content_MySites.[dbo].[Versions]

SharePoint Version History for Public Releases

Product Version
MOSS 2007 Cumulative update KB956056 & KB956057 12.0.0.6327
MOSS 2007 Infrastructure Update KB951695 & KB951297 12.0.0.6318
MOSS 2007 post SP1 hotfix KB948945 12.0.0.6303
MOSS 2007 post SP1 hotfix KB941274 12.0.0.6301
MOSS 2007 post SP1 hotfix KB941422 12.0.0.6300
MOSS 2007 SP1 12.0.0.6219
MOSS 2007 October public update 12.0.0.6039
MOSS 2007 August hotfix 12.0.0.6036
MOSS 2007 RTM 12.0.0.4518
MOSS 2007 Beta 2 TR 12.0.0.4407
MOSS 2007 Beta 2 12.0.0.4017

Hope this helps.

Update:

Penny has a good article about finding what version number you are running and the version history of SharePoint (v2 and v3) from beta to the current release http://mindsharpblogs.com/penny/articles/481.aspx.  Thanks to Penny for publishing (and keeping up to date  these version numbers).

Update:

You can also get the version from the API.  Try using SPWebService.ContentService.Farm.BuildVersion.  There is also SPGlobalAdmin.Version property but this shouldn't be used as its marked as obsolete.

Update:

And from Powershell ...

(get-item "hklm:software\microsoft\shared tools\web server extensions\12.0").getvalue("version")
12.0.0.6219

Thanks to Colin Byrne
  Copyright
This work is licenced under a Creative Commons Attribution-Noncommercial-No Derivative Works 2.0 UK: England & Wales License
  Site Map

Comments

Nice article

This article is very nice, thanks a lot.
Krishna.
at 04/02/2009 14:00

other IDs

Does anyone know what the other versions with the GUIDs on the Versions database mean?
at 10/03/2009 17:18

How to find the level of SharePoint you are running?

My blog has moved so the article about version numbers and SharePoint can be found at: http://www.sharepointdesignerstepbystep.com/Blog/Articles/How%20To%20find%20the%20SharePoint%20version.aspx
Penny Coventry
at 02/09/2009 13:25

 Dave Hunter

I'm currently a Senior Consultant at Netstore 2e2. I specialise in Microsoft Information Worker technologies (especially MOSS, MCMS and .NET), with over 8 years of experience within this area of specialism. 

I have gained two certifications for MOSS and WSS and look to complete the full certification track soon.

View Dave Hunter's profile on LinkedIn

  Subscribe in a reader


 Latest Posts

I’ve been Awarded a MVP for SharePoint01/04/2010 19:49
SharePoint 2010 Training on Microsoft E-Learning15/03/2010 17:56
SharePoint UK User Group - Thursday 27th August London Meeting25/08/2009 17:56
CAML Query that filters on the current user23/07/2009 17:50
Microsoft Ramp Up Free SharePoint Developer Training22/07/2009 20:59
How To: Change a SharePoint Application Pool Programmatically07/07/2009 18:08
SharePoint Forums Topping 100 Answers06/07/2009 12:29
Find out the SharePoint Internal Name for a Column or Site Column28/05/2009 09:56
Delving into Deploying SharePoint Artifacts with Features24/04/2009 15:20
SharePoint - Connecting MySites with the Portal24/04/2009 14:39
1 - 10 Next