Ekinlikler
31 Mar 23 - 2 Nis 23
En büyük SQL, Fabric ve Power BI öğrenme etkinliği. 31 Mart – 2 Nisan. 400 ABD doları tasarruf etmek için FABINSIDER kodunu kullanın.
Bugün kaydolunBu tarayıcı artık desteklenmiyor.
En son özelliklerden, güvenlik güncelleştirmelerinden ve teknik destekten faydalanmak için Microsoft Edge’e yükseltin.
Applies to:
SQL Server
Specifies the directory where collected data is stored before it's uploaded to the management data warehouse.
Transact-SQL syntax conventions
sp_syscollector_set_cache_directory [ [ @cache_directory = ] N'cache_directory' ]
[ ; ]
The directory in the file system where collected data is stored temporarily. @cache_directory is nvarchar(255), with a default of an empty string. If no value is specified, the default temporary SQL Server directory is used.
0
(success) or 1
(failure).
You must disable the data collector before changing the cache directory configuration. This stored procedure fails if the data collector is enabled. For more information, see Enable or disable data collection, and Manage data collection.
The specified directory doesn't need to exist at the time the sp_syscollector_set_cache_directory
is executed; however, data can't be successfully cached and uploaded until the directory is created. We recommend creating the directory before executing this stored procedure.
Requires membership in the dc_admin (with EXECUTE permission) fixed database role to execute this procedure.
The following example disables the data collector, sets the cache directory for the data collector to D:\tempdata
, and then enables the data collector.
USE msdb;
GO
EXECUTE dbo.sp_syscollector_disable_collector;
GO
EXEC dbo.sp_syscollector_set_cache_directory
@cache_directory = N'D:\tempdata';
GO
EXECUTE dbo.sp_syscollector_enable_collector;
GO
Ekinlikler
31 Mar 23 - 2 Nis 23
En büyük SQL, Fabric ve Power BI öğrenme etkinliği. 31 Mart – 2 Nisan. 400 ABD doları tasarruf etmek için FABINSIDER kodunu kullanın.
Bugün kaydolun