dbTalk Databases Forums  

adding an action using DSO? or another simple script?

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


Discuss adding an action using DSO? or another simple script? in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jéjé
 
Posts: n/a

Default adding an action using DSO? or another simple script? - 12-07-2004 , 07:48 PM






Hi,

I want to create a script to add some actions to my cubes.
but I don't find any reference in the BOL about how to do this using the DSO
objects.

so, anyone can provide a script to alter a cube and add an action?
I've try this without success:
dim cn
set cn = createobject("adodb.connection")
cn.Open "provider=msolap; Initial Catalog=Foodmart 2000;
Datasource=localhost"
strCreateCube = strCreateCube & "alter cube Sales add action MyNewAction For
cells as '""hi""' , TYPE= 'HTML'"
cn.execute strCreateCube

but no new action are created !!!
and there is no errors.

what is wrong?
thanks.

Jerome.



Reply With Quote
  #2  
Old   
Jéjé
 
Posts: n/a

Default Re: adding an action using DSO? or another simple script? - 12-07-2004 , 10:12 PM






ok I've found!!!

after some test I've create a VB script which use DSO to add my actions!
:-)

also, using DSO, I can add my custom library without problem!!!
using the AS Admin interface I can't do this!!!


"Jéjé" <willgart (AT) BBBhotmailAAA (DOT) com> a écrit dans le message de news:
O1jjyfM3EHA.2572 (AT) tk2msftngp13 (DOT) phx.gbl...
Quote:
Hi,

I want to create a script to add some actions to my cubes.
but I don't find any reference in the BOL about how to do this using the
DSO objects.

so, anyone can provide a script to alter a cube and add an action?
I've try this without success:
dim cn
set cn = createobject("adodb.connection")
cn.Open "provider=msolap; Initial Catalog=Foodmart 2000;
Datasource=localhost"
strCreateCube = strCreateCube & "alter cube Sales add action MyNewAction
For cells as '""hi""' , TYPE= 'HTML'"
cn.execute strCreateCube

but no new action are created !!!
and there is no errors.

what is wrong?
thanks.

Jerome.





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.