CaseLevel (clsMiningModel)

ms135578.note(zh-cn,SQL.90).gif注意:
  下一版本的 Microsoft SQL Server 将删除该功能。请不要在新的开发工作中使用该功能,并尽快修改当前还在使用该功能的应用程序。

The CaseLevel property of an object of ClassType clsMiningModel identifies the level of the CaseDimension that contains the cases for the mining model. This property applies only to mining models of SubClassType sbclsOlap.

Data Type

String

Access

Read-only

备注

The value of the CaseLevel property represents the name of the lowest enabled and visible level of the dimension specified in the CaseDimension property.

示例

The following example builds an OLAP data mining model and sets its case dimension to Customers. The lowest enabled and visible level in the Customers dimension is Name, so the CaseLevel property is set to the Name level.

dsoDmm.Description = "Analyzes the purchasing behavior of customers"
dsoDmm.MiningAlgorithm = "Microsoft_Decision_Trees"
dsoDmm.SourceCube = "Sales"
dsoDmm.CaseDimension = "Customers"
' Save the changes to the data mining model. This also populates
' the Columns collection and sets the CaseLevel property.
dsoDmm.Update
' The dsoDmm.CaseLevel property should have a value of "Name",
' the lowest enabled level of the Customers dimension.
Debug.Print dsoDmm.CaseLevel

请参阅

参考

clsMiningModel

帮助和信息

获取 SQL Server 2005 帮助