The link you have referenced is for the Multi-dimension model. For Tabular Model, you need to use the: Tabular Object Model
This means that your C# script task has to change.
The following is an outline code for getting details of a Tabular Model:
private static void GetCubeDetails()
{
//Server
var server = new Microsoft.AnalysisServices.Tabular.Server();
server.Connect(CubeConnectionStringDest);
LogUtil.Log(server.LastSchemaUpdate.ToString());
//Database
var db = server.Databases.FindByName(DatabaseNameDest);
LogUtil.Log(db.LastProcessed.ToString());
//Model
var model = db.Model;
//table
foreach(var table in model.Tables)
{
LogUtil.Log(table.ModifiedTime.ToString());
//partitions
foreach(var partition in table.Partitions)
{
LogUtil.Log(partition.State.ToString());
LogUtil.Log(partition.RefreshedTime.ToString());
}
}
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…