dbTalk Databases Forums  

Running Create global cube Mdx queries in XMLA - Analysis Server 2

microsoft.public.sqlserver.olap microsoft.public.sqlserver.olap


Discuss Running Create global cube Mdx queries in XMLA - Analysis Server 2 in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Lance A
 
Posts: n/a

Default Running Create global cube Mdx queries in XMLA - Analysis Server 2 - 01-19-2006 , 06:50 PM






Has anyone been successful in creating a cube file using XMLA?

In Management Studio I ran an MDX query that completed successfully:

CREATE GLOBAL CUBE [Test]
STORAGE 'c:\cube\test3'
FROM [Adventure Works DW]
(MEASURE [Adventure Works DW].[Average Rate],DIMENSION [Adventure Works
DW].[Dim Currency],DIMENSION [Adventure Works DW].[Dim Time])

I then tried the same query in XMLA, and received errors:

<Execute xmlns="urn:schemas-microsoft-com:xml-analysis">
<Command>
<Statement>
CREATE GLOBAL CUBE [Test]
STORAGE 'c:\cube\test3'
FROM [Adventure Works DW]
(MEASURE [Adventure Works DW].[Average Rate],DIMENSION [Adventure
Works DW].[Dim Currency],DIMENSION [Adventure Works DW].[Dim Time])
</Statement>
</Command>
<Properties>
<PropertyList>
</PropertyList>
</Properties>
</Execute>

Response was:

Executing the query ...
CREATE GLOBAL CUBE statement. FILENAME|c:\cube\test4|DDL|
<Batch xmlns="http://schemas.microsoft.com/analysisservices/2003/engine"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance

......

Execution complete

I would like to create cube files using XMLA, but looks like I'm going to
have to resort to msolap.3

Reply With Quote
  #2  
Old   
Akshai Mirchandani [MS]
 
Posts: n/a

Default Re: Running Create global cube Mdx queries in XMLA - Analysis Server 2 - 01-23-2006 , 01:48 PM






You can't do this with XMLA. Creating a local cube requires local machine
activity which obviously an XMLA request cannot handle. The error raised
below is handled by OLE DB or ADOMD.NET to actually create the local cube.

Thanks,
Akshai

--
--
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.

"Lance A" <Lance A (AT) discussions (DOT) microsoft.com> wrote

Quote:
Has anyone been successful in creating a cube file using XMLA?

In Management Studio I ran an MDX query that completed successfully:

CREATE GLOBAL CUBE [Test]
STORAGE 'c:\cube\test3'
FROM [Adventure Works DW]
(MEASURE [Adventure Works DW].[Average Rate],DIMENSION [Adventure Works
DW].[Dim Currency],DIMENSION [Adventure Works DW].[Dim Time])

I then tried the same query in XMLA, and received errors:

Execute xmlns="urn:schemas-microsoft-com:xml-analysis"
Command
Statement
CREATE GLOBAL CUBE [Test]
STORAGE 'c:\cube\test3'
FROM [Adventure Works DW]
(MEASURE [Adventure Works DW].[Average Rate],DIMENSION [Adventure
Works DW].[Dim Currency],DIMENSION [Adventure Works DW].[Dim Time])
/Statement
/Command
Properties
PropertyList
/PropertyList
/Properties
/Execute

Response was:

Executing the query ...
CREATE GLOBAL CUBE statement. FILENAME|c:\cube\test4|DDL|
Batch xmlns="http://schemas.microsoft.com/analysisservices/2003/engine"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance

.....

Execution complete

I would like to create cube files using XMLA, but looks like I'm going to
have to resort to msolap.3



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.