dbTalk Databases Forums  

Incremental Updates: How to set filters dynamically.

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


Discuss Incremental Updates: How to set filters dynamically. in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Shirish Nair
 
Posts: n/a

Default Incremental Updates: How to set filters dynamically. - 10-27-2005 , 02:09 AM






Hi,

We need to process a cube in "Incremental updates" mode on daily basis,
hence few questions related to the same.

- Is it possible ot define the filter dynaically ? i.e.
"transaction_table.transaction_date" = getdate() ( or some variable )
- Is is possible to schedule the cube processing i.e. during a partcular
time etc.?
- Is there some API's through which I could provide a GUI or Command line
interface to carry out the Cube processing with required parameters

Please help

Thank you ,

Shirish


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

Default Re: Incremental Updates: How to set filters dynamically. - 10-27-2005 , 04:43 AM







Quote:
- Is it possible ot define the filter dynaically ? i.e.
"transaction_table.transaction_date" = getdate() ( or some variable )
Yes it is, there are a couple of approaches to this. You could use the
DSO library to set these in the cube. Or you could point the cube at a
view that used GetDate() or other SQL logic to select the correct
records.

Quote:
- Is is possible to schedule the cube processing i.e. during a partcular
time etc.?
Yes, the easiest way is to set up a DTS package to do the processing
(there is a built-in OLAP processing task) and then right click on the
package and schedule it.

Quote:
- Is there some API's through which I could provide a GUI or Command line
interface to carry out the Cube processing with required parameters
The DSO library is a COM based interface which gives you access to all
the functions that are available through Analysis Manager ie. you can
create, alter, process etc.

AS Operations Guide white paper at:
http://www.microsoft.com/technet/pro...ntain/anservog.
mspx

Has some good DSO samples including one on determining data slices.
--
Regards
Darren Gosbell [MCSD]
<dgosbell_at_yahoo_dot_com>
Blog: http://www.geekswithblogs.net/darrengosbell


Reply With Quote
  #3  
Old   
Deepak Puri
 
Posts: n/a

Default Re: Incremental Updates: How to set filters dynamically. - 10-27-2005 , 02:30 PM



Another option to dynamically control the incremental update filter (for
AS 2000)in a DTS package is to add a Dynamic Properties task. This
allows some properties of an existing OLAP Processing task (such as its
filter) to be set programmatically, during runtime:

http://www.sqldts.com/default.aspx?252
Quote:
How to add a Dynamic Properties task to a package and manipulate it
using VB.

By Allan Mitchell
Version 2000
Level Advanced

With the introduction of SQL Server 2000 came the Dynamic Properties
task. This allows you to read connection settings, table names and just
about everything else for your DTS package from an INI file, a Global
Variable, an Environment variable, a Query, a Constant or a Data File.
...
Quote:

- Deepak

Deepak Puri
Microsoft MVP - SQL Server

*** Sent via Developersdex http://www.developersdex.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.