MSOLAP version

Posted on 2011-03-01
Last Modified: 2012-05-11
how can you find out what version of MSOLAP is being used in the system, for SQL Server.

Question by:anushahanna
  • 3
  • 2
LVL 25

Expert Comment

ID: 35007617
Not 100% sure but it should be possible to query it from the registry -

exec master..xp_regread 'HKEY_LOCAL_MACHINE', 'SOFTWARE\Microsoft\OLAP Server\CurrentVersion', 'VersionNum'

If you need the information for the dll, if you can do a manual search in the registry, then using the root, key and valuename parameters with xp_regread should give you the value

Author Comment

ID: 35007965

exec master..xp_regread 'HKEY_LOCAL_MACHINE', 'SOFTWARE\Microsoft\OLAP Server\CurrentVersion', 'VersionNum'
i get
Value      Data
VersionNum      0

i was hoping to see 2/3/4
LVL 25

Expert Comment

ID: 35008097
Try this -

master..xp_regread 'HKEY_CLASSES_ROOT', 'MSOLAP\CurVer', '(Default)'
LVL 25

Accepted Solution

reb73 earned 500 total points
ID: 35008181
It should actually be -

master..xp_regread 'HKEY_CLASSES_ROOT', 'MSOLAP\CurVer', NULL

If there are multiple OLAP versions, the above will give you the most recent version (The CurVer key will only exist if there are multiple versions)

If that doesn't return any values (or an error), then you will just have run a set of commands and use the return value 'KeyExist' to determine the applicable version -

exec master..xp_regread 'HKEY_CLASSES_ROOT', 'MSOLAP.4'
exec master..xp_regread 'HKEY_CLASSES_ROOT', 'MSOLAP.3'
exec master..xp_regread 'HKEY_CLASSES_ROOT', 'MSOLAP.2'
exec master..xp_regread 'HKEY_CLASSES_ROOT', 'MSOLAP'


Author Comment

ID: 35008296
really smart- thanks reb.

Featured Post

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SQL Stored Proc - Performance Enhancement 15 55
backup and restore 21 30
SQL Log size 3 18
VB.NET Application Installation with sqlserver 8 32
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
When it comes to protecting Oracle Database servers and systems, there are a ton of myths out there. Here are the most common.
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.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

829 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