dbTalk Databases Forums  

DTSOlapProcess

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


Discuss DTSOlapProcess in the microsoft.public.sqlserver.dts forum.



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

Default DTSOlapProcess - 08-02-2005 , 07:00 AM






Hi all,

My problem is quite simple. I have a small c# application accessing a DTS
package to read and display info about it. I can access any type of standard
custom tasks and its fields, but I lack documentation about DTSOlapProcess.

DTS.CreateProcessTask2 oCreateProcessTask =
(DTS.CreateProcessTask2)oTask.CustomTask;
Console.WriteLine(" Command line = {0}",
oCreateProcessTask.ProcessCommandLine);

These two lines (assuming that oTask is a valid DTS.Task object) allow me to
print the content of ProcessCommandLine field.

DTSOlapProcess.Task oDTSOlapProcessTask =
(DTSOlapProcess.Task)oTask.CustomTask;
Console.WriteLine(" Filter = {0}", oDTSOlapProcessTask.Filter);
Console.WriteLine(" Incrementally update dimensions = {0}",
oDTSOlapProcessTask.IncrementallyUpdateDimensions ? "Yes" : "No");

These three lines doesn't even compile. Intellisense completes
oDTSOlapProcessTask with .Filter, telling me that it is a string, but when
tring to compile I get this message: "Property, indexer, or event 'Filter'
is not supported by the language; try directly calling accessor methods
'DTSOlapProcess._Task.get_Filter()' or 'DTSOlapProcess._Task.set_Filter(ref
string)'"

The last line with IncrementallyUpdateDimensions (a bool) does work
correctly.

Can anyone help ? Does someone know where I could find documentation about
DTS and OLAP, standing from a developper point of view ?

Regards,

Luc Bolly



Reply With Quote
  #2  
Old   
Darren Green
 
Posts: n/a

Default Re: DTSOlapProcess - 08-02-2005 , 08:00 AM






Trying referencing the property through the Properties collection, something
like-

Console.WriteLine(" Filter = {0}",
oDTSOlapProcessTask.Properties["Filter"].Value);


--
Darren Green
http://www.sqldts.com
http://www.sqlis.com

"Luc Bolly" <luc.bolly (AT) eu (DOT) sony.com> wrote

Quote:
Hi all,

My problem is quite simple. I have a small c# application accessing a DTS
package to read and display info about it. I can access any type of
standard
custom tasks and its fields, but I lack documentation about
DTSOlapProcess.

DTS.CreateProcessTask2 oCreateProcessTask =
(DTS.CreateProcessTask2)oTask.CustomTask;
Console.WriteLine(" Command line = {0}",
oCreateProcessTask.ProcessCommandLine);

These two lines (assuming that oTask is a valid DTS.Task object) allow me
to
print the content of ProcessCommandLine field.

DTSOlapProcess.Task oDTSOlapProcessTask =
(DTSOlapProcess.Task)oTask.CustomTask;
Console.WriteLine(" Filter = {0}", oDTSOlapProcessTask.Filter);
Console.WriteLine(" Incrementally update dimensions = {0}",
oDTSOlapProcessTask.IncrementallyUpdateDimensions ? "Yes" : "No");

These three lines doesn't even compile. Intellisense completes
oDTSOlapProcessTask with .Filter, telling me that it is a string, but when
tring to compile I get this message: "Property, indexer, or event 'Filter'
is not supported by the language; try directly calling accessor methods
'DTSOlapProcess._Task.get_Filter()' or
'DTSOlapProcess._Task.set_Filter(ref
string)'"

The last line with IncrementallyUpdateDimensions (a bool) does work
correctly.

Can anyone help ? Does someone know where I could find documentation about
DTS and OLAP, standing from a developper point of view ?

Regards,

Luc Bolly





Reply With Quote
  #3  
Old   
Luc Bolly
 
Posts: n/a

Default Re: DTSOlapProcess - 08-02-2005 , 08:30 AM



Thanks, it seems to work. I am able to obtain the list of properties through
a foreach loop of all properties.

foreach(DTS.Property oProperty in oDTSOlapProcessTask.Properties) {
Console.WriteLine(" {0} = {1}", oProperty.Name,
oProperty.Value.ToString());
}

But despite this small victory, I'm still missing info about the DTS/DTS
Tasks/OLAP/... objects. MSDN is really poor on this and my search on the
Internet is not really fruitful. So if anyone has info, or links to info,
don't hesitate.

Luc Bolly



"Darren Green" <darren.green (AT) reply-to-newsgroup-sqldts (DOT) com> wrote

Quote:
Trying referencing the property through the Properties collection,
something
like-

Console.WriteLine(" Filter = {0}",
oDTSOlapProcessTask.Properties["Filter"].Value);


--
Darren Green
http://www.sqldts.com
http://www.sqlis.com

"Luc Bolly" <luc.bolly (AT) eu (DOT) sony.com> wrote in message
news:%23SBvlF1lFHA.1464 (AT) TK2MSFTNGP14 (DOT) phx.gbl...
Hi all,

My problem is quite simple. I have a small c# application accessing a
DTS
package to read and display info about it. I can access any type of
standard
custom tasks and its fields, but I lack documentation about
DTSOlapProcess.

DTS.CreateProcessTask2 oCreateProcessTask =
(DTS.CreateProcessTask2)oTask.CustomTask;
Console.WriteLine(" Command line = {0}",
oCreateProcessTask.ProcessCommandLine);

These two lines (assuming that oTask is a valid DTS.Task object) allow
me
to
print the content of ProcessCommandLine field.

DTSOlapProcess.Task oDTSOlapProcessTask =
(DTSOlapProcess.Task)oTask.CustomTask;
Console.WriteLine(" Filter = {0}", oDTSOlapProcessTask.Filter);
Console.WriteLine(" Incrementally update dimensions = {0}",
oDTSOlapProcessTask.IncrementallyUpdateDimensions ? "Yes" : "No");

These three lines doesn't even compile. Intellisense completes
oDTSOlapProcessTask with .Filter, telling me that it is a string, but
when
tring to compile I get this message: "Property, indexer, or event
'Filter'
is not supported by the language; try directly calling accessor methods
'DTSOlapProcess._Task.get_Filter()' or
'DTSOlapProcess._Task.set_Filter(ref
string)'"

The last line with IncrementallyUpdateDimensions (a bool) does work
correctly.

Can anyone help ? Does someone know where I could find documentation
about
DTS and OLAP, standing from a developper point of view ?

Regards,

Luc Bolly







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.