Discussion:
How to run a xmla script from an SSIS package
(too old to reply)
CraigHB
2007-04-03 10:22:01 UTC
Permalink
I have a xmla script that adds an role to a SQL Server 2005 Analysis Services
database (see below). How do I run that from an SSIS package ? Is there a
specific SSIS task that will do it ?

Here's the script:
<Create xmlns="http://schemas.microsoft.com/analysisservices/2003/engine">
<ParentObject>
<DatabaseID>Ask</DatabaseID>
</ParentObject>
<ObjectDefinition>
<Role xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ID>Role</ID>
<Name>REDPEPPER</Name>
<Members>
<Member>
<Name>Everyone</Name>
</Member>
</Members>
</Role>
</ObjectDefinition>
</Create>

Thanks,
Craig
Vidas Matelis
2007-04-03 12:22:15 UTC
Permalink
Craig,

Yes, there is "Analsysi Services Execute DDL" task. YOU can choose source as
direct input and put your code in there.

If you are planning to use more XMLA in your development, check about
performance test results in my blog
http://www.ssas-info.com/content/blogcategory/14/65/


Vidas Matelis
http://www.ssas-info.com
Post by CraigHB
I have a xmla script that adds an role to a SQL Server 2005 Analysis Services
database (see below). How do I run that from an SSIS package ? Is there a
specific SSIS task that will do it ?
<Create xmlns="http://schemas.microsoft.com/analysisservices/2003/engine">
<ParentObject>
<DatabaseID>Ask</DatabaseID>
</ParentObject>
<ObjectDefinition>
<Role xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ID>Role</ID>
<Name>REDPEPPER</Name>
<Members>
<Member>
<Name>Everyone</Name>
</Member>
</Members>
</Role>
</ObjectDefinition>
</Create>
Thanks,
Craig
CraigHB
2007-04-03 12:58:07 UTC
Permalink
That's it !!! Thanks for the help.
And I have had a look at your blog -- thanks for the advice

Loading...