Solved

MSOLAP version

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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

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.
I have a large data set and a SSIS package. How can I load this file in multi threading?
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 insert data into a SQL Server database table using the Import/Export option and Bulk Insert.

813 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

11 Experts available now in Live!

Get 1:1 Help Now