Solved

What is the version of SharePoint?

Posted on 2014-11-20
4
237 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
  • 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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
I thought I'd write this up for anyone who has a request to create an anonymous whistle-blower-type submission form created using SharePoint 2010 (this would probably work the same for 2013). It's not 100% fool-proof but it's as close as you can get…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.

911 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now