LastProcessed (Dimension Interface)
[!附註]
下一版的 Microsoft SQL Server 將不再提供此功能。請勿在新的開發工作中使用此功能,並且儘速修改使用此功能的應用程式。
The LastProcessed property of the Dimension interface contains the date and time when a dimension was last processed.
Applies To:clsAggregationDimension, clsCubeDimension, clsDatabaseDimension, clsPartitionDimension
Data Type
Date
Access
Read-only
備註
If the value of the State property is olapStateNeverProcessed, the LastProcessed property for an object is undefined, and it raises an error.
範例
Use the following code to determine when a dimension object was last processed:
'Assume an object (dsoDim) of ClassType clsDimension exists.
If dsoDim.State <> olapStateNeverProcessed Then
If dsoDim.LastProcessed < Date Then
'Insert code to process the dimension.
End If
End If