Thursday, February 23, 2006

Populate "All Caption" property of Analysis Services 2000 Dimension using DSO

This post is an answer to my earlier post titled Books Online needs some enhancement. In this post I had raised an issue to populate the "All caption" property of Analysis Services 2000 Dimension using DSO and C# as i could not find an answer in Books Online (BOL).

The solution:

Using just the MemberKeyColumn property solves the problem.

DSO.Level allLevelDepartment = (DSO.Level)dsoDimDepartment.Levels.AddNew("(All)", DSO.SubClassTypes.sbclsRegular);
allLevelDepartment.LevelType = DSO.LevelTypes.levAll;
allLevelDepartment.EstimatedSize = 1;
allLevelDepartment.MemberKeyColumn = "All Department";

This syntax of C# will be enough to populate the "All Caption" property of a Analysis Services 2000 Dimension using DSO.

# posted by Gautham Kamath @ 19:49   152 comments
Categories 
News 
Co-bloggers 
Archives 
Site Feed 
Extreme Tracker 
eXTReMe Tracker
Feed Burner 

This page is powered by Blogger. Isn't yours?