blogs.conchango.com

welcome to the conchango blogging site
Welcome to blogs.conchango.com Sign in | Join | Help
in Search

SSIS Junkie

Conchango are busy and need top level Technical Architects for Microsoft & Open Source platforms in and around London. Interested? Email me or send me a message

SSIS: A use for the XML type with the Analysis Services Processing Task

Here's a little tip for you.

Some database pros are skeptical about the arrival of the XML data type in SQL Server 2005. They see it as an opportunity for cowboy developers to store all of their data in a single field with no regard for atomicity, normalisation or referential integrity. OK, I'm exaggerating a bit but you get the point.

Well the XML data type DOES have uses and we're using it in a very handy way on my current project. We process AS2005 objects numerous time during our nightly batch load and we realised that building a seperate task for each time we needed to execute a processing job was creating needless effort.

Instead, we have a package that contains an Analysis Services 2005 Processing Task. We call that package whenever we need to process something in AS. We pass it an integer parameter (using a Parent Package Configuration) which keys the following table:

CREATE TABLE ASProcessingCommands(
   ASProcessingCommandsID int PRIMARY KEY,
   ProcessingCommands xml
)

The ProcessingCommands column contains an XML snippet that tells the Analysis Services Processing Task which tasks to process. We retrieve the appropriate value from the table and then set the ProcessingCommands property of the task using an expression.

So, not only have we made use of the XML type but we have also implemented a parameterized, reusable, SSIS package. Anyone that reads this blog regularly will now that I have lamented on many occasions the lack of reusability in SSIS so I am very pleased that we have gone some way toward reusability here.

-Jamie

 

 

Published 03 April 2006 13:42 by jamie.thomson

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

 

Jin said:

Hi Jamie,

You post makes perfect sense. Could you please help me with one small detail. I don't see XML available as a data type when you define SSIS variables. How do you use XMLA in the expression without using an XML variable?

Thank in advance for your help!

Jin

February 7, 2007 09:31
 

jamie.thomson said:

Hello Jin,

Thanks for your comments. The simple answer is to use a string variable. If you think that there SHOULD be an XML type within SSIS the request it at: https://connect.microsoft.com/sqlServer/feedback

-Jamie

February 7, 2007 18:32
 

Robert Harmon said:

Hello,

Could you give an example of what the XML snippet would be in the ASProcessingCommands table..

Thanks,

Robert

May 31, 2007 19:53
 

alex said:

how to use microsoft.analysisservices.trace object to create a trace with some filters? now i can use trace object to create a trace , but i can't find the way setting filters.

January 24, 2008 12:40

Leave a Comment

(required) 
(optional)
(required) 
Submit

This Blog

Syndication

News

Powered by Community Server (Personal Edition), by Telligent Systems