dbTalk Databases Forums  

Implementing ProcessAdd on a Dimension

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


Discuss Implementing ProcessAdd on a Dimension in the microsoft.public.sqlserver.olap forum.



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

Default Implementing ProcessAdd on a Dimension - 01-20-2006 , 10:40 AM






I'm having difficulty finding examples of using ProcessAdd to update a
dimension. I found one comment in "Applied Microsoft Analysis Services" that
says that it only works on single-table dimensions, which is somewhat
limiting, but still adds value.

The only XMLA example I can find is from the 2005 processing architecture
document
(http://msdn.microsoft.com/sql/bi/ana...sprocarch.asp),
but this sample (see below) is not complete. It includes an msprop namespace
which is not defined, and an xs namespace which is not defined.

Can someone please post a working ProcessAdd XMLA example?

<Process xmlns="http://schemas.microsoft.com/analysisservices/2003/engine">
<Object>
<DatabaseID>Adventure Works DW</DatabaseID>
<DimensionID>Dim Customer</DimensionID>
</Object>
<Type>ProcessAdd</Type>
<DataSourceView>
<ID>Adventure Works DW</ID>
<Name>Adventure Works DW</Name>
<DataSourceID>Adventure Works DW</DataSourceID>
<Schema>
...
<xs:element name="dbo_DimCustomer" msprop:QueryDefinition="SELECT
* FROM DimCustomer WHERE CustomerKey > 29483"
mspropbTableName="DimCustomer"
msprop:IsLogical="True"
msprop:TableType="View">
...
</Schema>
</DataSourceView>
</Process>


Thanks,

--
SmartGuy

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

Default Re: Implementing ProcessAdd on a Dimension - 01-23-2006 , 01:59 PM






msprop and xs namespaces are defined in a typical DSV. Just do "view source"
of any DSV and you should see them defined.

Essentially the snippet in the document is indicating to "paste" a good DSV
in that part of the request...

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.

"SmartGuy" <SmartGuy (AT) discussions (DOT) microsoft.com> wrote

Quote:
I'm having difficulty finding examples of using ProcessAdd to update a
dimension. I found one comment in "Applied Microsoft Analysis Services"
that
says that it only works on single-table dimensions, which is somewhat
limiting, but still adds value.

The only XMLA example I can find is from the 2005 processing architecture
document
(http://msdn.microsoft.com/sql/bi/ana...sprocarch.asp),
but this sample (see below) is not complete. It includes an msprop
namespace
which is not defined, and an xs namespace which is not defined.

Can someone please post a working ProcessAdd XMLA example?

Process
xmlns="http://schemas.microsoft.com/analysisservices/2003/engine"
Object
DatabaseID>Adventure Works DW</DatabaseID
DimensionID>Dim Customer</DimensionID
/Object
Type>ProcessAdd</Type
DataSourceView
ID>Adventure Works DW</ID
Name>Adventure Works DW</Name
DataSourceID>Adventure Works DW</DataSourceID
Schema
...
xs:element name="dbo_DimCustomer" msprop:QueryDefinition="SELECT
* FROM DimCustomer WHERE CustomerKey > 29483"
mspropbTableName="DimCustomer"
msprop:IsLogical="True"
msprop:TableType="View"
...
/Schema
/DataSourceView
/Process


Thanks,

--
SmartGuy



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.