sp_syscollector_set_cache_window (Transact-SQL)
SQL Server 2008
Sets the number of times to attempt a data upload in case of failure. Retrying an upload in the event of a failure mitigates the risk of losing collected data.
You must disable the data collector before changing the cache window configuration. This stored procedure fails if the data collector is enabled. For more information, see How to: Enable or Disable Data Collection, and Managing Data Collection Using Transact-SQL.
The following example disables the data collector, configures the cache window to retain data for up to three failed uploads, and then enables to data collector.
USE msdb; GO EXECUTE dbo.sp_syscollector_disable_collector; GO EXECUTE dbo.sp_syscollector_set_cache_window 3; GO EXECUTE dbo.sp_syscollector_enable_collector;

