dbTalk Databases Forums  

Process OLAP cube via vbscript

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Process OLAP cube via vbscript in the microsoft.public.sqlserver.dts forum.



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

Default Process OLAP cube via vbscript - 08-29-2006 , 11:34 AM






Hi,

I need to find out how to process an AS 2000 cube via vbscript.

So far I have set the following properties:

' *** Set Task Properties
oOLAPTaskProperties("Description").Value = "Process MyCube"
oOLAPTaskProperties("Datasource").Value = "MyDatasource"
oOLAPTaskProperties("TreeKey").Value =
"MYSERVER\MYSERVER_AS\CubeFolder\MyCube\MyCube 1"
oOLAPTaskProperties("FactTable").Value = "dbo.MyTable"

But how do I now process the Cube?

I've tried "oOLAPTask.Execute" but it doesn't seem to like it???

I've found it very difficult to find any help...

Thanks in advance

Jon Derbyshire

Reply With Quote
  #2  
Old   
Charles Kangai
 
Posts: n/a

Default RE: Process OLAP cube via vbscript - 08-29-2006 , 12:36 PM






Does it have to be vbscript rather than vb 6? You could save yourself a lot
of trouble by creating whatever you want to do as a package in the DTS
Designer, and saving it to Visual Basic. This will create your package code
in VB with the correct data typing. You just need to add references that
point to the DTS libraries. You could then execute it from a VB app, or
compile it into a DLL, and then calling the DLL from a vbscript.

Hope this helps.

Charles Kangai, MCT, MCDBA

Author of Learning Tree's 4-day course: "SQL Server 2005 Integration
Services" http://www.learningtree.com/courses/134.htm
Author of Learning Tree's 4-day course: "SQL Server Reporting Services"
http://www.learningtree.com/courses/523.htm






"Jon Derbyshire" wrote:

Quote:
Hi,

I need to find out how to process an AS 2000 cube via vbscript.

So far I have set the following properties:

' *** Set Task Properties
oOLAPTaskProperties("Description").Value = "Process MyCube"
oOLAPTaskProperties("Datasource").Value = "MyDatasource"
oOLAPTaskProperties("TreeKey").Value =
"MYSERVER\MYSERVER_AS\CubeFolder\MyCube\MyCube 1"
oOLAPTaskProperties("FactTable").Value = "dbo.MyTable"

But how do I now process the Cube?

I've tried "oOLAPTask.Execute" but it doesn't seem to like it???

I've found it very difficult to find any help...

Thanks in advance

Jon Derbyshire

Reply With Quote
  #3  
Old   
Jon Derbyshire
 
Posts: n/a

Default RE: Process OLAP cube via vbscript - 08-30-2006 , 02:51 AM



Hi,

As requested, I'm looking to do process the cube via vbscript "inside" my DTS.

I don't agree with spreading code everywhere just because its easier to code.

Any help would be great.

Thanks

Jon Derbyshire

"Charles Kangai" wrote:

Quote:
Does it have to be vbscript rather than vb 6? You could save yourself a lot
of trouble by creating whatever you want to do as a package in the DTS
Designer, and saving it to Visual Basic. This will create your package code
in VB with the correct data typing. You just need to add references that
point to the DTS libraries. You could then execute it from a VB app, or
compile it into a DLL, and then calling the DLL from a vbscript.

Hope this helps.

Charles Kangai, MCT, MCDBA

Author of Learning Tree's 4-day course: "SQL Server 2005 Integration
Services" http://www.learningtree.com/courses/134.htm
Author of Learning Tree's 4-day course: "SQL Server Reporting Services"
http://www.learningtree.com/courses/523.htm






"Jon Derbyshire" wrote:

Hi,

I need to find out how to process an AS 2000 cube via vbscript.

So far I have set the following properties:

' *** Set Task Properties
oOLAPTaskProperties("Description").Value = "Process MyCube"
oOLAPTaskProperties("Datasource").Value = "MyDatasource"
oOLAPTaskProperties("TreeKey").Value =
"MYSERVER\MYSERVER_AS\CubeFolder\MyCube\MyCube 1"
oOLAPTaskProperties("FactTable").Value = "dbo.MyTable"

But how do I now process the Cube?

I've tried "oOLAPTask.Execute" but it doesn't seem to like it???

I've found it very difficult to find any help...

Thanks in advance

Jon Derbyshire

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.