Re: DISCOVER_XML_METADATA
- From: "Akshai Mirchandani [MS]" <akshaim@xxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 8 Aug 2006 17:38:47 -0700
You should be looking at the ObjectExpansion restriction. Have you looked at
the options ReferenceOnly and ExpandObject?
You may need to send more requests but that is a much more scalable
solution.
Thanks,
Akshai
--
Try out the MSDN Forums for Analysis Services at:
http://forums.microsoft.com/MSDN/ShowForum.aspx?ForumID=83&SiteID=1
This posting is provided "AS IS" with no warranties, and confers no rights
Please do not send email directly to this alias. This alias is for newsgroup
purposes only.
"alextt" <alextt@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:68FFC8FC-E91C-4FE3-84FB-723CD0FA02D3@xxxxxxxxxxxxxxxx
Thanks Darren for your help.
There is a small problem with DBSCHEMA_CATALOGS - it doesn't list
unprocessed cubes and it doesn't show processing status information about
cubes. Unfortunately, DISCOVER_XML_METADATA is the only solution for me.
Thanks
"Darren Gosbell" wrote:
I can't think of any way of getting just dimensions and cubes in a
single XMLA query. So apart from using XSLT to strip out just what you
need, the other option would be to do multiple queries.
A DBSCHEMA_CATALOGS query will get you a list of all the databases
eg.
<Discover xmlns="urn:schemas-microsoft-com:xml-analysis">
<RequestType>DBSCHEMA_CATALOGS</RequestType>
<Restrictions />
<Properties />
</Discover>
Then for each database you could run an MDSCHEMA_CUBES query to get a
list of cubes.
eg.
<Discover xmlns="urn:schemas-microsoft-com:xml-analysis">
<RequestType>MDSCHEMA_CUBES</RequestType>
<Restrictions />
<Properties>
<PropertyList>
<Catalog>Adventure Works DW</Catalog>
</PropertyList>
</Properties>
</Discover>
If you are using these queries to populate a UI, the multiple query
approach could work quite nicely as normally you would "drill down" from
the database list to the list of cubes for a selected database. You will
also find the more specific queries MUCH faster than a
DISCOVER_XML_METADATA query.
--
Regards
Darren Gosbell - SQL Server MVP
Blog: http://www.geekswithblogs.net/darrengosbell
In article <61BD8102-B77F-430A-AC99-5DF87CEA6EFA@xxxxxxxxxxxxx>,
alextt@xxxxxxxxxxxxxxxxxxxxxxxxx says...
I'm using following code to get list and properties of all objects in
my
Analysis Server.
<Discover xmlns="urn:schemas-microsoft-com:xml-analysis">
<RequestType>DISCOVER_XML_METADATA</RequestType>
<Restrictions>
<RestrictionList>
<ObjectExpansion>ExpandFull</ObjectExpansion>
</RestrictionList>
</Restrictions>
<Properties>
<PropertyList>
</PropertyList>
</Properties>
</Discover>
The XML fresult is too long and I don't need eveything (e.g. dimension
properties) in my XML result file. My question is how to exclude
unwanted
(levels, attributes or properties) in my XMLA query and get only the
list of
only Databases and Cubes available on my server. In that case XML file
will
be smaller and contain only the data that I need.
Thanks
and I hope this post will help many others.
.
- Follow-Ups:
- Re: DISCOVER_XML_METADATA
- From: alextt
- Re: DISCOVER_XML_METADATA
- References:
- Re: DISCOVER_XML_METADATA
- From: Darren Gosbell
- Re: DISCOVER_XML_METADATA
- From: alextt
- Re: DISCOVER_XML_METADATA
- Prev by Date: Re: CustomData property in SSAS 2005
- Next by Date: Error editing Description on dimension
- Previous by thread: Re: DISCOVER_XML_METADATA
- Next by thread: Re: DISCOVER_XML_METADATA
- Index(es):
Relevant Pages
|
Loading