Solved

MSOLAP version

Posted on 2011-03-01
5
1,333 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
  • 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 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'



0
 
LVL 6

Author Comment

by:anushahanna
ID: 35008296
really smart- thanks reb.
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.

Join & Write a Comment

Learn about cloud computing and its benefits for small business owners.
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
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.
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…

747 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

12 Experts available now in Live!

Get 1:1 Help Now