dbTalk Databases Forums  

How do I remove (delete?) a cube with DSO?

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


Discuss How do I remove (delete?) a cube with DSO? in the microsoft.public.sqlserver.olap forum.



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

Default How do I remove (delete?) a cube with DSO? - 04-17-2005 , 05:12 PM






I need to delete a cube so that I can replace it with a VB script.

Can anyone provide me with a pointer or example of how to do this?

Bob

Bob Segrest, PMP
BSegE LLC
(540) 937-5875
http://www.BSegE.com

Reply With Quote
  #2  
Old   
SQL McOLAP
 
Posts: n/a

Default RE: How do I remove (delete?) a cube with DSO? - 04-18-2005 , 08:25 AM






See the following code, it assumes you've declared and passed in strServer
(the OLAP server), strDatabase (the OLAP Database) and strCube (the name of
the cube you want to delete):



Dim dsoServer As DSO.Server
Dim dsoDatabase As DSO.Database

Set dsoServer = New DSO.Server
dsoServer.Connect (strServer)
Set dsoDatabase = dsoServer.MDStores(strDatabase)

dsoDatabase.MDStores.Remove (strCube)




Good luck.


"Bob Segrest" wrote:

Quote:
I need to delete a cube so that I can replace it with a VB script.

Can anyone provide me with a pointer or example of how to do this?

Bob

Bob Segrest, PMP
BSegE LLC
(540) 937-5875
http://www.BSegE.com


Reply With Quote
  #3  
Old   
Bob Segrest
 
Posts: n/a

Default RE: How do I remove (delete?) a cube with DSO? - 04-18-2005 , 09:12 AM



Thank you very much!

That took care of my problem nicely... ;^)


Bob Segrest, PMP
BSegE LLC
(540) 937-5875
http://www.BSegE.com

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.