dbTalk Databases Forums  

Cannot change SourceTable property of cloned partition (DSO)

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


Discuss Cannot change SourceTable property of cloned partition (DSO) in the microsoft.public.sqlserver.olap forum.



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

Default Cannot change SourceTable property of cloned partition (DSO) - 11-02-2005 , 11:21 AM






Hi All,

I have a big problem setting SourceTable property of just cloned partition
using DSO (in AS2000). Cloning partition from the cube's main partition
works, setting SourceTableFilter works, processing partition works fine too.
Before I do partition update and processing, I need to change SourceTable
property of the new cloned partition. But when I assign new source table name
to this property, the property holds the same old value! I don't even get any
error message!

This is part of the C# code:

DSO.MDStore oPartition = (DSO.MDStore)
oCube.MDStores.AddNew("~temp",DSO.SubClassTypes.sb clsRegular);
DSO.MDStore CubePartition = (DSO.MDStore) oCube.MDStores.Item(oCube.Name);
CubePartition.Clone(oPartition, DSO.CloneOptions.cloneMajorChildren);

oPartition.SourceTable = "\"dbo\".\"AnotherSourceTable\""; // this is simply
not working

This last assignment to SourceTable property proceeds without any error, but
the property still holds the old value! I even tried to change oPartition
object type to DSO.PartitionClass and used hidden member "set_FactTable(ref
string)" to set the property, but with no success.
There is a plenty of VB code, but I haven't seen any DSO code in C# about
this. It might sound weird, but is it possible that there is some internal
problem because C# doesn't support Variant type?

Desperately need help on this!

Gustav

Reply With Quote
  #2  
Old   
Gustav
 
Posts: n/a

Default RE: Cannot change SourceTable property of cloned partition (DSO) - 11-02-2005 , 02:16 PM






Problem solved. SourceTable property won't change until you change also
FromClause property. Nice. :-/

"Gustav Elsner" wrote:

Quote:
Hi All,

I have a big problem setting SourceTable property of just cloned partition
using DSO (in AS2000). Cloning partition from the cube's main partition
works, setting SourceTableFilter works, processing partition works fine too.
Before I do partition update and processing, I need to change SourceTable
property of the new cloned partition. But when I assign new source table name
to this property, the property holds the same old value! I don't even get any
error message!

This is part of the C# code:

DSO.MDStore oPartition = (DSO.MDStore)
oCube.MDStores.AddNew("~temp",DSO.SubClassTypes.sb clsRegular);
DSO.MDStore CubePartition = (DSO.MDStore) oCube.MDStores.Item(oCube.Name);
CubePartition.Clone(oPartition, DSO.CloneOptions.cloneMajorChildren);

oPartition.SourceTable = "\"dbo\".\"AnotherSourceTable\""; // this is simply
not working

This last assignment to SourceTable property proceeds without any error, but
the property still holds the old value! I even tried to change oPartition
object type to DSO.PartitionClass and used hidden member "set_FactTable(ref
string)" to set the property, but with no success.
There is a plenty of VB code, but I haven't seen any DSO code in C# about
this. It might sound weird, but is it possible that there is some internal
problem because C# doesn't support Variant type?

Desperately need help on this!

Gustav

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.