capitanosol
Programmer
Hi, this is my first time here....
I have a written a small function in a SSIS Script task objet in order to extract some infomation about Cube that are on my server...
I am almost done but I cannot extract the datasource from each table in a DSV starting from the cude. Some table in the same DSV comes from different DataSources.
Dim oServer As Microsoft.AnalysisServices.Server
oServer = New Microsoft.AnalysisServices.Server()
oServer.Connect("***")
For Each oDB As Microsoft.AnalysisServices.Database In oServer.Databases
For Each oCube As Microsoft.AnalysisServices.Cube In oDB.Cubes
For Each oTBL As DataTable In oCube.DataSourceView.Schema.Tables.
Sortie0Buffer.AddRow()
Sortie0Buffer.SSASDatabaseName = oDB.Name
Sortie0Buffer.CubeName = oCube.Name
Sortie0Buffer.TableName = oTBL.TableName
Sortie0Buffer.TableSource = oTBL.DataSet.DataSetName
Sortie0Buffer.DataSource = ???
Sortie0Buffer.TableType = oTBL.ExtendedProperties("TableType")
Next
Next
Next
oServer.Disconnect()
Can someone help me ?
I have a written a small function in a SSIS Script task objet in order to extract some infomation about Cube that are on my server...
I am almost done but I cannot extract the datasource from each table in a DSV starting from the cude. Some table in the same DSV comes from different DataSources.
Dim oServer As Microsoft.AnalysisServices.Server
oServer = New Microsoft.AnalysisServices.Server()
oServer.Connect("***")
For Each oDB As Microsoft.AnalysisServices.Database In oServer.Databases
For Each oCube As Microsoft.AnalysisServices.Cube In oDB.Cubes
For Each oTBL As DataTable In oCube.DataSourceView.Schema.Tables.
Sortie0Buffer.AddRow()
Sortie0Buffer.SSASDatabaseName = oDB.Name
Sortie0Buffer.CubeName = oCube.Name
Sortie0Buffer.TableName = oTBL.TableName
Sortie0Buffer.TableSource = oTBL.DataSet.DataSetName
Sortie0Buffer.DataSource = ???
Sortie0Buffer.TableType = oTBL.ExtendedProperties("TableType")
Next
Next
Next
oServer.Disconnect()
Can someone help me ?