Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Running XMLA processing from Command line SQL 2008


Running XMLA processing from Command line SQL 2008

Author
Message
garudatx
garudatx
Forum Newbie
Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)

Group: General Forum Members
Points: 6 Visits: 18
Hi,

I am setting up job scheduling through a third party app that does not speak directly with SQL server jobs.
My (hopefully) last big hurdle is to find a way to run the XMLA processing scripts from a command line. Only info I can find on it seems to refer to VS 2005 and an ascmd tool.

Does any one have any tips to help me run an XMLA script from the command line?


Thankyou,
James
Marc Beacom
Marc Beacom
Forum Newbie
Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)

Group: General Forum Members
Points: 7 Visits: 289
Hello James,

We've done this in the past but now call an SSIS package that controls the processing.

For the command line processing we called a .xmla file with the following syntax.

"E:\Utilities\ascmd.exe" -i "E:\XMLA Queries\Portal\Process Dims.xmla" -S "<ServerName>"

The contents of the Process Dims.xmla would be something like:



<Batch xmlns="http://schemas.microsoft.com/analysisservices/2003/engine">
<Parallel>
<Process xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ddl2="http://schemas.microsoft.com/analysisservices/2003/engine/2" xmlns:ddl2_2="http://schemas.microsoft.com/analysisservices/2003/engine/2/2">
<Object>
<DatabaseID>Adventure Works DW 2008</DatabaseID>
<DimensionID>Dim Customer</DimensionID>
</Object>
<Type>ProcessFull</Type>
</Process>
<Process xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ddl2="http://schemas.microsoft.com/analysisservices/2003/engine/2" xmlns:ddl2_2="http://schemas.microsoft.com/analysisservices/2003/engine/2/2">
<Object>
<DatabaseID>Adventure Works DW 2008</DatabaseID>
<DimensionID>Dim Product</DimensionID>
</Object>
<Type>ProcessFull</Type>
</Process>
</Parallel>
</Batch>

Hope this helps.

Marc

Marc Beacom
Managing Partner DatalereTAP the Power of Data
garudatx
garudatx
Forum Newbie
Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)

Group: General Forum Members
Points: 6 Visits: 18
Thanks Mark,

That is what I was looking for, but I was having trouble getting the actual ascmd.exe file. From searching I founf it is in a sample package you can download from MicroSoft, but all the links to it I found were broken, and referenced VS 2005. Searching the MS site for it got no hits. We finally found some sample package for Visial Studio 2005 (we are using 2008). you have to get the folder and compile the project (based on whether you will run it on 32 o64 bit) and need SDK installed on the system you will compile this on.
Then moved the ascmd.exe file over to the server and I can now run my XMLA scripts from the command line.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search