?
Solved

What is the version of SharePoint?

Posted on 2014-11-20
4
Medium Priority
?
275 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 1000 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 1000 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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
What if you have to shut down the entire Citrix infrastructure for hardware maintenance, software upgrades or "the unknown"? I developed this plan for "the unknown" and hope that it helps you as well. This article explains how to properly shut down …
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties

741 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