Checking if all records are processed.
news_at_danor.dk
Date: 11/24/04
- Next message: Raj: "Re: Problem reestablishing link to OLAP data source from Excel Pivot table"
- Previous message: Chris Webb: "RE: CurrentMember Context - HELP!!!!!"
- Next in thread: Jacco Schalkwijk: "Re: Checking if all records are processed."
- Reply: Jacco Schalkwijk: "Re: Checking if all records are processed."
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 24 Nov 2004 15:54:21 +0100
Hi.
I need to build a litle utility to check wheter all records from fact table
have been processed in the cube, and if not, i need to check each dimension
to find if any dimensionmembers is lacking.
Have anyone done this before?
We have a site wiht quite a lot of OLAP cubes, where we need to be able to
make an overview of wheter all records from fact tables have been processed.
At the moment, we know that due to som missing dimension members, not all
records have been processed.
I have startet to look a bit on DSO. At the moment, I have not been able to
find any informations of how many records have been processed. If I can not
find this information, I need to check that all dimension members in fact
table also exists in dimension tables.
What I will try to do, is to make a SQL Server table containing all cubes,
with its dimensions, and the name of fact table and dimension tables, and
the linkin fields from dimension table to fact table.
I have started with this vb-code, which list all cubes and dimensions, with
sourcetable. But in some cases, maybe because this cube is
Sub LNVTest()
Dim dsoServer As DSO.Server
Dim dsoDb As DSO.MDStore
Dim dsoCube As DSO.MDStore
Dim dimDim As DSO.Dimension
' On Error GoTo HandleErr
Set dsoServer = New DSO.Server
dsoServer.Connect "localhost"
' lstInfo.Clear
For Each dsoDb In dsoServer.MDStores
Debug.Print "Database: " & dsoDb.Name & " (" & _
dsoDb.Description & ")"
' Iterate through the MDStores collection of the Database
' object, which contains Cubes
Debug.Print dsoDb.DataSources(1).ConnectionString
For Each dsoCube In dsoDb.MDStores
On Error Resume Next
Debug.Print vbTab & "Cube: " & dsoCube.Name & " (" & _
dsoCube.SourceTable & ")"
For Each dimDim In dsoCube.Dimensions
Debug.Print vbTab & vbTab & dimDim.Name & " - " &
dimDim.SourceTableAlias
Next
On Error GoTo 0
Next dsoCube
Next dsoDb
dsoServer.CloseServer
Set dsoServer = Nothing
End Sub
If I can retrieve the correct informations from a DSO-program, I will store
the informations in a SQL Serfer Table, and then make a Stored Procedure to
chek each dimension against fact table, to check wether all dimension
members in fact table exists in the dimension table.
Regards,
Lorents Nord-Varhaug
- Next message: Raj: "Re: Problem reestablishing link to OLAP data source from Excel Pivot table"
- Previous message: Chris Webb: "RE: CurrentMember Context - HELP!!!!!"
- Next in thread: Jacco Schalkwijk: "Re: Checking if all records are processed."
- Reply: Jacco Schalkwijk: "Re: Checking if all records are processed."
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|