?
Solved

MSOLAP version

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

thanks
0
Comment
Question by:anushahanna
[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
  • 3
  • 2
5 Comments
 
LVL 25

Expert Comment

by:reb73
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
0
 
LVL 6

Author Comment

by:anushahanna
ID: 35007965
for

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
0
 
LVL 25

Expert Comment

by:reb73
ID: 35008097
Try this -

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

Accepted Solution

by:
reb73 earned 2000 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'



0
 
LVL 6

Author Comment

by:anushahanna
ID: 35008296
really smart- thanks reb.
0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Your data is at risk. Probably more today that at any other time in history. There are simply more people with more access to the Web with bad intentions.
Backups and Disaster RecoveryIn this post, we’ll look at strategies for backups and disaster recovery.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
Via a live example, show how to shrink a transaction log file down to a reasonable size.
Suggested Courses

777 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