dbTalk Databases Forums  

Multiple SSAS 2005 XMLA <Create>...</Create> commands Problem

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


Discuss Multiple SSAS 2005 XMLA <Create>...</Create> commands Problem in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Bob H.
 
Posts: n/a

Default Multiple SSAS 2005 XMLA <Create>...</Create> commands Problem - 04-04-2006 , 02:56 PM






I'm trying to create multiple dimensions in an SSAS 2005 database through one
XMLA script file in an XMLA Query window in Management Studio. I have
generated the <Create>...</Create> commands and confirmed that each one
executes correctly individually. However, when I paste them into the query
window one right after the other and attempt to run the file, I get an error
that claims only one <Create> command can appear:

"The 'Create' element at line 58, column 76
('http://schemas.microsoft.com/analysisservices/2003/engine' namespace)
appears more than once under Envelope/Body/Execute/Command."

If I understand the documentation on the Create element correctly, you can
have more than one such element within the <Command> </Command> element:

"0-n: Optional element that can occur more than once."

Anyone have an ideas on how to make this work? I'm trying to create 790+
dimensions, so I'd sure like to avoid executing each script manually.



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

Default Re: Multiple SSAS 2005 XMLA <Create>...</Create> commands Problem - 04-04-2006 , 05:37 PM






You need to use a Batch element to "batch" the commands together.

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.

"Bob H." <BobH (AT) discussions (DOT) microsoft.com> wrote

Quote:
I'm trying to create multiple dimensions in an SSAS 2005 database through
one
XMLA script file in an XMLA Query window in Management Studio. I have
generated the <Create>...</Create> commands and confirmed that each one
executes correctly individually. However, when I paste them into the query
window one right after the other and attempt to run the file, I get an
error
that claims only one <Create> command can appear:

"The 'Create' element at line 58, column 76
('http://schemas.microsoft.com/analysisservices/2003/engine' namespace)
appears more than once under Envelope/Body/Execute/Command."

If I understand the documentation on the Create element correctly, you can
have more than one such element within the <Command> </Command> element:

"0-n: Optional element that can occur more than once."

Anyone have an ideas on how to make this work? I'm trying to create 790+
dimensions, so I'd sure like to avoid executing each script manually.





Reply With Quote
  #3  
Old   
Edward Melomed [MSFT]
 
Posts: n/a

Default Re: Multiple SSAS 2005 XMLA <Create>...</Create> commands Problem - 04-04-2006 , 05:40 PM



Wrap all of them in a
<Batch xmlns="http://schemas.microsoft.com/analysisservices/2003/engine">

......

</Batch>

Edward.
--
This posting is provided "AS IS" with no warranties, and confers no rights


"Bob H." <BobH (AT) discussions (DOT) microsoft.com> wrote

Quote:
I'm trying to create multiple dimensions in an SSAS 2005 database through
one
XMLA script file in an XMLA Query window in Management Studio. I have
generated the <Create>...</Create> commands and confirmed that each one
executes correctly individually. However, when I paste them into the query
window one right after the other and attempt to run the file, I get an
error
that claims only one <Create> command can appear:

"The 'Create' element at line 58, column 76
('http://schemas.microsoft.com/analysisservices/2003/engine' namespace)
appears more than once under Envelope/Body/Execute/Command."

If I understand the documentation on the Create element correctly, you can
have more than one such element within the <Command> </Command> element:

"0-n: Optional element that can occur more than once."

Anyone have an ideas on how to make this work? I'm trying to create 790+
dimensions, so I'd sure like to avoid executing each script manually.





Reply With Quote
  #4  
Old   
Bob H.
 
Posts: n/a

Default Re: Multiple SSAS 2005 XMLA <Create>...</Create> commands Problem - 04-04-2006 , 05:45 PM



Thanks, Akshai! Unfortunately I've already tried wrapping my create elements
in the <Batch>...</Batch> tags but it still did not work. It complained that
I could not nest a <Batch> element inside <Command>...</Command> elements.

I wonder if this is a bug?
--
Bob Hodgman


"Akshai Mirchandani [MS]" wrote:

Quote:
You need to use a Batch element to "batch" the commands together.

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.

"Bob H." <BobH (AT) discussions (DOT) microsoft.com> wrote in message
news:46CF426E-F332-4A4D-9B3C-41AFB0EC43EA (AT) microsoft (DOT) com...
I'm trying to create multiple dimensions in an SSAS 2005 database through
one
XMLA script file in an XMLA Query window in Management Studio. I have
generated the <Create>...</Create> commands and confirmed that each one
executes correctly individually. However, when I paste them into the query
window one right after the other and attempt to run the file, I get an
error
that claims only one <Create> command can appear:

"The 'Create' element at line 58, column 76
('http://schemas.microsoft.com/analysisservices/2003/engine' namespace)
appears more than once under Envelope/Body/Execute/Command."

If I understand the documentation on the Create element correctly, you can
have more than one such element within the <Command> </Command> element:

"0-n: Optional element that can occur more than once."

Anyone have an ideas on how to make this work? I'm trying to create 790+
dimensions, so I'd sure like to avoid executing each script manually.






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

Default Re: Multiple SSAS 2005 XMLA <Create>...</Create> commands Problem - 04-04-2006 , 06:05 PM



No, this most definitely works -- we use this all the time

Can you post the exact snippet of DDL and the error message you got back.
Perhaps you didn't use the correct namespace or something like that...

Take a look at
http://msdn.microsoft.com/library/de...asprocarch.asp
for examples on the usage of the Batch element (although its all about
Process operations it works the same for Create).

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.

"Bob H." <BobH (AT) discussions (DOT) microsoft.com> wrote

Quote:
Thanks, Akshai! Unfortunately I've already tried wrapping my create
elements
in the <Batch>...</Batch> tags but it still did not work. It complained
that
I could not nest a <Batch> element inside <Command>...</Command> elements.

I wonder if this is a bug?
--
Bob Hodgman


"Akshai Mirchandani [MS]" wrote:

You need to use a Batch element to "batch" the commands together.

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.

"Bob H." <BobH (AT) discussions (DOT) microsoft.com> wrote in message
news:46CF426E-F332-4A4D-9B3C-41AFB0EC43EA (AT) microsoft (DOT) com...
I'm trying to create multiple dimensions in an SSAS 2005 database
through
one
XMLA script file in an XMLA Query window in Management Studio. I have
generated the <Create>...</Create> commands and confirmed that each one
executes correctly individually. However, when I paste them into the
query
window one right after the other and attempt to run the file, I get an
error
that claims only one <Create> command can appear:

"The 'Create' element at line 58, column 76
('http://schemas.microsoft.com/analysisservices/2003/engine' namespace)
appears more than once under Envelope/Body/Execute/Command."

If I understand the documentation on the Create element correctly, you
can
have more than one such element within the <Command> </Command
element:

"0-n: Optional element that can occur more than once."

Anyone have an ideas on how to make this work? I'm trying to create
790+
dimensions, so I'd sure like to avoid executing each script manually.








Reply With Quote
  #6  
Old   
Bob H.
 
Posts: n/a

Default Re: Multiple SSAS 2005 XMLA <Create>...</Create> commands Problem - 04-04-2006 , 06:36 PM



I did not include the namespace! When I included the namespace, it worked
like a charm. Thanks!
--
Bob Hodgman


"Akshai Mirchandani [MS]" wrote:

Quote:
No, this most definitely works -- we use this all the time

Can you post the exact snippet of DDL and the error message you got back.
Perhaps you didn't use the correct namespace or something like that...

Take a look at
http://msdn.microsoft.com/library/de...asprocarch.asp
for examples on the usage of the Batch element (although its all about
Process operations it works the same for Create).

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.

"Bob H." <BobH (AT) discussions (DOT) microsoft.com> wrote in message
news3F44267-B2CC-4309-AA36-7A2FE929C839 (AT) microsoft (DOT) com...
Thanks, Akshai! Unfortunately I've already tried wrapping my create
elements
in the <Batch>...</Batch> tags but it still did not work. It complained
that
I could not nest a <Batch> element inside <Command>...</Command> elements.

I wonder if this is a bug?
--
Bob Hodgman


"Akshai Mirchandani [MS]" wrote:

You need to use a Batch element to "batch" the commands together.

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.

"Bob H." <BobH (AT) discussions (DOT) microsoft.com> wrote in message
news:46CF426E-F332-4A4D-9B3C-41AFB0EC43EA (AT) microsoft (DOT) com...
I'm trying to create multiple dimensions in an SSAS 2005 database
through
one
XMLA script file in an XMLA Query window in Management Studio. I have
generated the <Create>...</Create> commands and confirmed that each one
executes correctly individually. However, when I paste them into the
query
window one right after the other and attempt to run the file, I get an
error
that claims only one <Create> command can appear:

"The 'Create' element at line 58, column 76
('http://schemas.microsoft.com/analysisservices/2003/engine' namespace)
appears more than once under Envelope/Body/Execute/Command."

If I understand the documentation on the Create element correctly, you
can
have more than one such element within the <Command> </Command
element:

"0-n: Optional element that can occur more than once."

Anyone have an ideas on how to make this work? I'm trying to create
790+
dimensions, so I'd sure like to avoid executing each script manually.









Reply With Quote
  #7  
Old   
Bob H.
 
Posts: n/a

Default Re: Multiple SSAS 2005 XMLA <Create>...</Create> commands Problem - 04-04-2006 , 06:36 PM



Bingo! Adding the namespace did the trick. Thanks, Edward!
--
Bob Hodgman


"Edward Melomed [MSFT]" wrote:

Quote:
Wrap all of them in a
Batch xmlns="http://schemas.microsoft.com/analysisservices/2003/engine"

......

/Batch

Edward.
--
This posting is provided "AS IS" with no warranties, and confers no rights


"Bob H." <BobH (AT) discussions (DOT) microsoft.com> wrote in message
news:46CF426E-F332-4A4D-9B3C-41AFB0EC43EA (AT) microsoft (DOT) com...
I'm trying to create multiple dimensions in an SSAS 2005 database through
one
XMLA script file in an XMLA Query window in Management Studio. I have
generated the <Create>...</Create> commands and confirmed that each one
executes correctly individually. However, when I paste them into the query
window one right after the other and attempt to run the file, I get an
error
that claims only one <Create> command can appear:

"The 'Create' element at line 58, column 76
('http://schemas.microsoft.com/analysisservices/2003/engine' namespace)
appears more than once under Envelope/Body/Execute/Command."

If I understand the documentation on the Create element correctly, you can
have more than one such element within the <Command> </Command> element:

"0-n: Optional element that can occur more than once."

Anyone have an ideas on how to make this work? I'm trying to create 790+
dimensions, so I'd sure like to avoid executing each script manually.






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.