Server.NotifyTableChange 方法
Notifies an instance of Analysis Services that a change has occurred to tables in a specified data source.
命名空間: Microsoft.AnalysisServices
組件: Microsoft.AnalysisServices (在 Microsoft.AnalysisServices.dll 中)
語法
'宣告
Public Sub NotifyTableChange ( _
dataSource As DataSource, _
tableNotifications As TableNotificationCollection _
)
'用途
Dim instance As Server
Dim dataSource As DataSource
Dim tableNotifications As TableNotificationCollection
instance.NotifyTableChange(dataSource, _
tableNotifications)
public void NotifyTableChange(
DataSource dataSource,
TableNotificationCollection tableNotifications
)
public:
void NotifyTableChange(
DataSource^ dataSource,
TableNotificationCollection^ tableNotifications
)
member NotifyTableChange :
dataSource:DataSource *
tableNotifications:TableNotificationCollection -> unit
public function NotifyTableChange(
dataSource : DataSource,
tableNotifications : TableNotificationCollection
)
參數
- dataSource
型別:Microsoft.AnalysisServices.DataSource
The data source in the Analysis Services database.
- tableNotifications
型別:Microsoft.AnalysisServices.TableNotificationCollection
The TableNotifications objects that describe the changed tables.
備註
The NotifyTableChange command allows a client application to explicitly notify an Analysis Services instance that one or more tables contained in a data source have been changed. For proactive caching, this notification indicates that relational OLAP (ROLAP) objects based on those tables should be reviewed and updated.
This method of notification is best used for ROLAP objects that are based on views or named queries defined in a data source view, for which changes can be hard to detect and track.
For more information about proactive caching, see 主動式快取 (資料分割).