dbTalk Databases Forums  

Analysis services - Removing tables from cube schema using VBScript

comp.databases.olap comp.databases.olap


Discuss Analysis services - Removing tables from cube schema using VBScript in the comp.databases.olap forum.



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

Default Analysis services - Removing tables from cube schema using VBScript - 06-10-2005 , 08:48 AM






I have created a script which clones a cube and replaces the existing
Fact table with a new one. The script works fine and sets up the
required joins and adds the new fact table as required, the only issue
is that the original fact table is still in the schema as well as a
normal table. Is anyone aware of how to resolve this?

Any help would be appreciated. I have provided a part of the script
below.

Thanks


---------------------------------------
VBScript being used
---------------------------------------

dsoCube.Clone dsoCubeNew

dsoCubeNew.SourceTable = strFactTable

' Set the FromClause and JoinClause properties of the new partition.

dsoCubeNew.FromClause = Replace(dsoCubeNew.FromClause,
dsoCube.SourceTable, dsoCubeNew.SourceTable)

dsoCubeNew.JoinClause = Replace(dsoCubeNew.JoinClause,
dsoCube.SourceTable, dsoCubeNew.SourceTable)

dsoCubeNew.update


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.