Solved

What is the version of SharePoint?

Posted on 2014-11-20
4
261 Views
Last Modified: 2014-11-20
I have a set of SQL databases from a SharePoint environment.  I do not have any of the web files.

I am trying to determine the version of the SharePoint database.  Does anyone know how to write a SQL query to do this?
0
Comment
Question by:rye004
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 7

Accepted Solution

by:
Ray earned 250 total points
ID: 40455700
select * FROM [SharePoint_Config].[dbo].[Versions]
WHERE VersionId = '00000000-0000-0000-0000-000000000000'

Then look up the version in http://www.toddklindt.com/blog/Lists/Posts/Post.aspx?ID=346
0
 
LVL 20

Assisted Solution

by:dsacker
dsacker earned 250 total points
ID: 40455715
This query should work. If your Sharepoint database name is not "Sharepoint_Config", select the appropriately named config database.
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

Open in new window

The first record will be your most current version (if they have changed).
0
 

Author Comment

by:rye004
ID: 40455758
Thank you guys.  I am getting version 14.0.4762.1000, which I believe is SharePoint 2010.  Could someone confirm this?
0
 
LVL 20

Expert Comment

by:dsacker
ID: 40455763
Yes, it is 2010 RTM.
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article we will learn how to fix  “Cannot install SQL Server 2014 Service Pack 2: Unable to install windows installer msi file” error ?
A Stored Procedure in Microsoft SQL Server is a powerful feature that it can be used to execute the Data Manipulation Language (DML) or Data Definition Language (DDL). Depending on business requirements, a single Stored Procedure can return differe…
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties

696 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question