Configure data collection parameters (Transact-SQL)
Applies to:
SQL Server
Before you create a custom collection set, you must first configure data collection parameters. You can do this by using the stored procedures that are provided with the data collector. Accomplishing this task involves using Query Editor in SQL Server Management Studio to carry out the following procedure.
Note
You only configure data collection parameters once. After configuration, these parameters are used for any additional collection sets that you create.
Configure data collection parameters
In SQL Server Management Studio, connect to the database where you want to create a custom collection set.
In Query Editor, issue the following statements.
USE msdb; GO EXEC sp_syscollector_set_warehouse_instance_name N'INSTANCE_NAME';-- where instance name is the name of the SQL Server instance EXEC sp_syscollector_set_warehouse_database_name N'MDW'; EXEC sp_syscollector_set_cache_directory N'D:\tempdata';
Related content
Phản hồi
https://aka.ms/ContentUserFeedback.
Sắp ra mắt: Trong năm 2024, chúng tôi sẽ dần gỡ bỏ Sự cố với GitHub dưới dạng cơ chế phản hồi cho nội dung và thay thế bằng hệ thống phản hồi mới. Để biết thêm thông tin, hãy xem:Gửi và xem ý kiến phản hồi dành cho