SourceCube (clsMiningModel)
![]() |
---|
Cette fonctionnalité sera supprimée dans la prochaine version de Microsoft SQL Server. Évitez d'utiliser cette fonctionnalité dans de nouveaux travaux de développement, et modifiez dès que possible les applications qui utilisent actuellement cette fonctionnalité. |
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
Notes
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.
![]() |
---|
A mining model cannot use a virtual cube which already contains a mining dimension as a source cube. |
Exemple
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"