dbTalk Databases Forums  

DSO Incremental Update in Visual Studio C#

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


Discuss DSO Incremental Update in Visual Studio C# in the microsoft.public.sqlserver.olap forum.



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

Default DSO Incremental Update in Visual Studio C# - 02-13-2004 , 04:15 PM






I'm experimenting with programmatic ways of updating cube data. I came
across an example in SQL Books Online. I clone a temporary partition, point
it to the desired fact table that has additional data, and then attempt to
process it. But when I call the Process method I get an Interop error
telling me that I have an "Invalid fact table alias". If I just process the
partition via Analysis Manager then it's fine. Does anyone know what's
going on here.



Reply With Quote
  #2  
Old   
Dave Wickert [MSFT]
 
Posts: n/a

Default Re: DSO Incremental Update in Visual Studio C# - 02-13-2004 , 09:21 PM






My advice is to get the Metadata Scripter that is contained on the SQL
Server 2000 Resource Kit (available on a TechNet Resource Kit CD/DVD, or at
your local bookstore :-)

It will take a AS object and reverse engineer it into a VB program to
re-create it. So your steps would be:
1) Run AM and create the partition
2) Run the metadata scripter and generate a matching VB program. Let's call
it "Program A".
3) Run AM and delete the partition.
4) Run your application and create the partition
5) Run the metadata scripter and generate a matching VB program. Let's call
it "Program B"

If you compare Program A with Program B (use a tool like windiff for this),
I am sure that you will find that there is some property that you have not
setup properly.

Hope that helps.
--
Dave Wickert [MS]
dwickert (AT) online (DOT) microsoft.com
Program Manager
BI Practices Team
SQL BI Product Unit (Analysis Services)
--
This posting is provided "AS IS" with no warranties, and confers no rights.


"Ves Sladin" <VesSladin (AT) friedrichklatt (DOT) com> wrote

Quote:
I'm experimenting with programmatic ways of updating cube data. I came
across an example in SQL Books Online. I clone a temporary partition,
point
it to the desired fact table that has additional data, and then attempt to
process it. But when I call the Process method I get an Interop error
telling me that I have an "Invalid fact table alias". If I just process
the
partition via Analysis Manager then it's fine. Does anyone know what's
going on here.





Reply With Quote
  #3  
Old   
Ves Sladin
 
Posts: n/a

Default Re: DSO Incremental Update in Visual Studio C# - 02-17-2004 , 10:26 AM



Thank you for the reply, but based on what you wrote I think I need to make
an additional clarification. Namely, in my debugging, the only thing I've
done in Analysis Services is to attempt to Process. In other words, it's
not like I'm comparing going through these steps in Analysis Services vs
going through them programmatically. In both cases, all steps except for
processing are done through code. It's just that issuing a process command
in Visual Studio didn't work. So, I went to Analysis Services to see if the
partition was visible, and since it was, I thought I'd try to process it
there. That worked. Therefore, Analysis Services sees the partition as
properly constructed and is able to work with it, which implies to me that
there shouldn't be anything wrong with the definition of the partition.

So, if my logic is right, doing what you suggest would imply that simply by
opening Analysis Services and looking at the partition there, I've somehow
changed it's definition. Is this what you're implying? Please clarify.
Thanks Again.

Ves

"Dave Wickert [MSFT]" <dwickert (AT) online (DOT) microsoft.com> wrote

Quote:
My advice is to get the Metadata Scripter that is contained on the SQL
Server 2000 Resource Kit (available on a TechNet Resource Kit CD/DVD, or
at
your local bookstore :-)

It will take a AS object and reverse engineer it into a VB program to
re-create it. So your steps would be:
1) Run AM and create the partition
2) Run the metadata scripter and generate a matching VB program. Let's
call
it "Program A".
3) Run AM and delete the partition.
4) Run your application and create the partition
5) Run the metadata scripter and generate a matching VB program. Let's
call
it "Program B"

If you compare Program A with Program B (use a tool like windiff for
this),
I am sure that you will find that there is some property that you have not
setup properly.

Hope that helps.
--
Dave Wickert [MS]
dwickert (AT) online (DOT) microsoft.com
Program Manager
BI Practices Team
SQL BI Product Unit (Analysis Services)
--
This posting is provided "AS IS" with no warranties, and confers no
rights.


"Ves Sladin" <VesSladin (AT) friedrichklatt (DOT) com> wrote in message
news:%23RjAr7n8DHA.2116 (AT) TK2MSFTNGP10 (DOT) phx.gbl...
I'm experimenting with programmatic ways of updating cube data. I came
across an example in SQL Books Online. I clone a temporary partition,
point
it to the desired fact table that has additional data, and then attempt
to
process it. But when I call the Process method I get an Interop error
telling me that I have an "Invalid fact table alias". If I just process
the
partition via Analysis Manager then it's fine. Does anyone know what's
going on here.







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.