dbTalk Databases Forums  

ClearCache XMLA error

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


Discuss ClearCache XMLA error in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Graham Binner
 
Posts: n/a

Default ClearCache XMLA error - 06-12-2006 , 06:54 AM






I am new to XMLA, so it may be that I am missing something very
obvious, but I get an error when I run the ClearCache command in the
XMLA query window in SQL Server Management Studio.

The query

<Command>
<ClearCache>
<Object>
<DatabaseID>DataWarehouseAnalysis</DatabaseID>
</Object>
</ClearCache>
</Command>

returns the error

Executing the query ...
The Command element at line 7, column 24 (namespace
urn:schemas-microsoft-com:xml-analysis) cannot appear under
Envelope/Body/Execute/Command.
Execution complete

I can't understand what I am doing wrong. Can anyone help? Thanks


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

Default Re: ClearCache XMLA error - 06-12-2006 , 02:58 PM






Firstly, you don't need the Command element (it is already being generated
by SSMS). Secondly, the ClearCache needs to be in the correct namespace
(http://schemas.microsoft.com/analysi...es/2003/engine)

<ClearCache
xmlns="http://schemas.microsoft.com/analysisservices/2003/engine">
<Object>
<DatabaseID>DataWarehouseAnalysis</DatabaseID>
</Object>
</ClearCache>

HTH,
Akshai
--
Try out the MSDN Forums for Analysis Services at:
http://forums.microsoft.com/MSDN/Sho...ID=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.

"Graham Binner" <graham.binner (AT) aleagroup (DOT) com> wrote

Quote:
I am new to XMLA, so it may be that I am missing something very
obvious, but I get an error when I run the ClearCache command in the
XMLA query window in SQL Server Management Studio.

The query

Command
ClearCache
Object
DatabaseID>DataWarehouseAnalysis</DatabaseID
/Object
/ClearCache
/Command

returns the error

Executing the query ...
The Command element at line 7, column 24 (namespace
urn:schemas-microsoft-com:xml-analysis) cannot appear under
Envelope/Body/Execute/Command.
Execution complete

I can't understand what I am doing wrong. Can anyone help? Thanks




Reply With Quote
  #3  
Old   
Graham Binner
 
Posts: n/a

Default Re: ClearCache XMLA error - 06-13-2006 , 05:26 AM



That works. Thanks very much for your help.

Graham

Akshai Mirchandani [MS] wrote:
Quote:
Firstly, you don't need the Command element (it is already being generated
by SSMS). Secondly, the ClearCache needs to be in the correct namespace
(http://schemas.microsoft.com/analysi...es/2003/engine)

ClearCache
xmlns="http://schemas.microsoft.com/analysisservices/2003/engine"
Object
DatabaseID>DataWarehouseAnalysis</DatabaseID
/Object
/ClearCache

HTH,
Akshai
--
Try out the MSDN Forums for Analysis Services at:
http://forums.microsoft.com/MSDN/Sho...ID=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.

"Graham Binner" <graham.binner (AT) aleagroup (DOT) com> wrote in message
news:1150113241.895295.64930 (AT) f14g2000cwb (DOT) googlegroups.com...
I am new to XMLA, so it may be that I am missing something very
obvious, but I get an error when I run the ClearCache command in the
XMLA query window in SQL Server Management Studio.

The query

Command
ClearCache
Object
DatabaseID>DataWarehouseAnalysis</DatabaseID
/Object
/ClearCache
/Command

returns the error

Executing the query ...
The Command element at line 7, column 24 (namespace
urn:schemas-microsoft-com:xml-analysis) cannot appear under
Envelope/Body/Execute/Command.
Execution complete

I can't understand what I am doing wrong. Can anyone help? Thanks



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.