473,396 Members | 1,827 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Count the number of cubes

Hi all,

Do you know how can I count the number of cubes and number of databases
in SQL Analysis Services using T-SQL?

Thanks.

Jul 23 '05 #1
2 2010

To count number of databases use this

select count(catalog_name) from information_schema.schemata

Madhivanan

Jul 23 '05 #2
Analysis Services is totally separate from MSSQL, so you can't use TSQL
to query it directly. Even if you create a linked server from MSSQL, it
is linked to a single AS database, not to the AS server as a whole. But
there are (at least) a couple of ways to enumerate the databases and
cubes.

First, if you've migrated the metadata repository to an MSSQL database,
then you can use queries like this:

select count(*) from OlapObjects
where objectdefinition like '<database%'

select count(*) from OlapObjects
where objectdefinition like '<cube%'

If you haven't migrated the repository, you may be able to use an
equivalent query in Access to get the information, but I've never tried
that myself.

Second, you can use the DSO COM interface to enumerate the MDStore
objects. See "Decision Support Objects Architecture" in Books Online
for more details. This is probably a better solution, because the
repository database isn't documented (as far as I know), and DSO is the
standard mechanism for managing AS from code.

If this doesn't help, you could try posting in
microsoft.public.sqlserver.olap.

Simon

Jul 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Will | last post by:
On the subject of Data Warehouses, Data Cubes & OLAP…. I would like to speak frankly about Data Warehouses, Data Cubes and OLAP (on-line analytical processing). Has it dawned on anyone else...
1
by: Krzyh | last post by:
How to get data from cubes in analyses manager to MS access using for example ODBC ? Does existe any other posibilities to get data from cubes directly to the accees ? thanks Kris
7
by: Will | last post by:
On the subject of Data Warehouses, Data Cubes & OLAP…. I would like to speak frankly about Data Warehouses, Data Cubes and OLAP (on-line analytical processing). Has it dawned on anyone else...
0
by: Achim K?nstler | last post by:
Hi, hat jemand Erfahrungen gemacht in Sachen "virtuelle Cubes" ??? Wir überlgen ein Projekt aufzusetzen, dass ca. 6.000 virtuelle Cubes enthalten soll? Wie steht es um die User-Verwaltung ?...
0
by: AOstarello | last post by:
Hi all, I'm trying to link to some OLAP cubes that were created using the MS SQL Server Analysis Tools. The cubes reside on an Analysis Server. I'm trying to find a simple way for users to...
0
by: | last post by:
hi, i'm working on a project for finacial reporting with oracle 81.1.7 server and asp.net. I want to use oracle cubes in my asp.net application but i have not found anything about this topic in...
2
by: ashu | last post by:
an armstrong number of three digits is an integer such that the sum of the cubes of its digits is equal to the number itself. for example, 171 is an armstrong number since 3**3+7**7+1**1=371. i...
0
by: Deven Oza | last post by:
Hi All, I am changing measures property "sum" to "distinct count" but when I am looking at the browser to see the data, its not changing at all, the data value is same as I was getting before....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.