Condividi tramite


SourceCube (clsMiningModel)

[!NOTA]

  Questa caratteristica verrà rimossa a partire dalla prossima versione di Microsoft SQL Server. Non utilizzare questa caratteristica in un nuovo progetto di sviluppo e modificare non appena possibile le applicazioni in cui è attualmente implementata.

The SourceCube property of an object of ClassType clsMiningModel specifies the cube that provides the source data for the mining model. This property applies only to mining models of SubClassType sbclsOlap.

Data Type

String

Access

Read/write

Osservazioni

The source cube of a mining model must reside in the same database as the mining model itself.The specified source cube must be visible (that is, the IsVisible property of the clsCube object must be set to True). If the IsVisible property of the source cube is set to False, an error is raised.

[!NOTA]

  A mining model cannot use a virtual cube which already contains a mining dimension as a source cube.

Esempio

The following example specifies the City level of the Customer dimension be used to generate training cases for the mining model from the Sales cube.

' Assume the existence of a mining model object named dsoDMM.
dsoDMM.SourceCube = "Sales"
dsoDMM.CaseDimension = "Customer"

Vedere anche

Riferimento