Re: Discussion: How to determine a Fact Table algorithmically

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Mosha Pasumansky [MS] (moshap_at_online.microsoft.com)
Date: 03/05/04

  • Next message: Girish: "Re: Discussion: How to determine a Fact Table algorithmically"
    Date: Fri, 5 Mar 2004 12:52:12 -0800
    
    

    Yukon Analysis Services has such automatic detection of fact and dimension
    tables already.
    More information here:
    http://www.microsoft.com/technet/prodtechnol/sql/yukon/evaluate/dwsqlsy.mspx#XSLTsection127121120120
    (Under Create Dimensions and Cubes, discussion about IntelliCube).

    -- 
    ==================================================
    Mosha Pasumansky  - http://www.mosha.com/msolap
    Development Lead in the Analysis Server team
    All you need is love (John Lennon)
    Disclaimer : This posting is provided "AS IS" with no warranties, and
    confers no rights.
    ==================================================
    "Girish" <gbajaj@tietronixinc.com> wrote in message
    news:e6q4AENAEHA.2180@TK2MSFTNGP09.phx.gbl...
    > Everyone knows what fact tables are. Everyone knows that you need some
    kind
    > of application domain expert to identify the fact tables in a relational
    > database so that you can eventually build a cube around it. A domain
    expert
    > would also probably identify the dimension tables as well as any measures.
    >
    > Anyways, so heres my question - and it came up after looking at sql yukons
    > new one-click cube feature - It seems (to me) pretty magical that you can
    > algorithmically determine what a fact table is and its corresponding
    > dimension tables are by just analyzing the database schema (note the word
    > schema and not data!). In order to unveil the magic (cause I know its
    really
    > not! :-) ), I have taken it up upon myself to determine what this
    algorithm
    > could be.
    >
    > Can anyone take a crack at this algorithm? Heres my initial attempt - but
    > its not good enough.
    >
    > POTENTIAL FACT TABLES
    > --------------------------------
    > 1) Locate all Tables in database (and lets just stick with one db for now)
    > that have a foreign key constraint on them.
    > 2) Locate all Tables that are alone and not connected to any other tables.
    >
    > My simple algo for now gets more fact tables than yukons one-click cube
    > feature. I did this test with the northwind database. If you want - I can
    > post what fact and dimension tables yukon analysis server came up with.
    >
    > Should be a interesting and thought provoking discussion dont you think?
    :-)
    > Unless the answer is so bloody simple that I cant see it cause im daft.
    But
    > I think not - cause if it were simple - wouldnt MS have included this
    > feature earlier on? :D And then also think about all the bad database
    > designs out there that you would probably need to consider as well right!
    To
    > add another twist - what about fact tables that are horizontally or
    > vertically partitioned? Can an algorithm detect this as well? Or is manual
    > the only way this can be done?
    >
    > thanks,
    > girish
    >
    >
    

  • Next message: Girish: "Re: Discussion: How to determine a Fact Table algorithmically"

    Relevant Pages

    • Re: Incremental update on changing dimension corrupting data in cu
      ... database is removed from the data-folder, the OLAP service stays online. ... > and recycles constantly (a frequent consequence of a corrupted dimension), ... >> In this cube, some of the data is moved around and placed under incorrect ...
      (microsoft.public.sqlserver.olap)
    • RE: Analysis Services Newbie
      ... If not,try processing the entire database and on Browser click Reconnect. ... > I started over and now the error message in the preview window says there is ... >> will not let me preview the dimension it says "Unable to browse the Dimension ... >> browse the cube data after I made the dimensions. ...
      (microsoft.public.sqlserver.olap)
    • Re: SQL Server 2005 Bug Processing a cube
      ... can you edit the database in VS? ... can you process 1 dimension only? ... server 2000 to 2005. ... when I process the cube I get the following error. ...
      (microsoft.public.sqlserver.olap)
    • dimension table from a different datasource
      ... I want to solve a problem that I have, by creating a dimension from a table ... that is not in the datasource that the cube is from. ... If I had CREATE TABLE permissions for the database I would create ...
      (microsoft.public.sqlserver.olap)
    • Re: Analysis Manager Operations extremely slow
      ... both RDBMS SMO and Analysis Services ... testing domain authentication. ... cube editor slowness if connecting to Oracle. ... Gender dimension to "M" and still browse the Sales cube. ...
      (microsoft.public.sqlserver.olap)