Beantwortet Question about AdventureWorksDW2008R2 sample database

  • sábado, 24 de março de 2012 22:36
     
     

    Hi,

    I found that all of the facts tables in the AdventureWorksDW2008R2 include a RevisionNumber column which always includes “1”.

    What is the usage of RevisionNumber colums?

    Thank you,

    • Movido Challen Fu terça-feira, 27 de março de 2012 05:36 (From:SQL Server Analysis Services)
    •  

Todas as Respostas

  • terça-feira, 27 de março de 2012 05:40
     
     

    Hi amx,

    I move it to SQL Server Samples and Community Projects forum to receive more specific support.


    Challen Fu

    TechNet Community Support

  • quarta-feira, 28 de março de 2012 02:53
    Moderador
     
     Respondido

    Data in fact tables can change over time so one implementation for tracking changes is to implement a Revision/Version number.  The values are all 1 because no changes have been made to the data in the fact tables.


    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer

    Jeff Wharton
    MSysDev (C.Sturt), MDbDsgnMgt (C.Sturt), MCT, MCPD, MCSD, MCITP, MCDBA
    Blog: Mr. Wharty's Ramblings
    Twitter: @Mr_Wharty
    MC ID: Microsoft Transcript

    • Marcado como Resposta amx2012 sexta-feira, 6 de abril de 2012 22:00
    •  
  • quarta-feira, 28 de março de 2012 04:19
     
     

    Hi Jeff,

    What would be the update senario? Should I update the record and set the RevisionNumber to 2 or insert a new record with updated data and RevisionNumber = 2?

    Thank you for help,

  • quinta-feira, 29 de março de 2012 00:48
    Moderador
     
     

    It depends on how you'd like to handle fact table updates. 

    As you are now seeking advice on how to handle fact table updates, I'd suggest that you post your question in one of the SSAS forums http://social.msdn.microsoft.com/Forums/en-US/sqlanalysisservices/threads


    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer

    Jeff Wharton
    MSysDev (C.Sturt), MDbDsgnMgt (C.Sturt), MCT, MCPD, MCSD, MCITP, MCDBA
    Blog: Mr. Wharty's Ramblings
    Twitter: @Mr_Wharty
    MC ID: Microsoft Transcript