Solved

MSOLAP version

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

Suggested Solutions

Title # Comments Views Activity
point in time restore in SQL server 26 44
C# DataTable (in memory) vs SQL Lookups 4 35
error in oracle form 11 26
Convert time stamp to date 2 56
Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
Many companies are looking to get out of the datacenter business and to services like Microsoft Azure to provide Infrastructure as a Service (IaaS) solutions for legacy client server workloads, rather than continuing to make capital investments in h…
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed

749 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