Export (0) Print
Expand All

core.sp_remove_collector_type (Transact-SQL)

Applies To: SQL Server 2014, SQL Server 2016 Preview

Topic Status: Some information in this topic is preview and subject to change in future releases. Preview information describes new features or changes to existing features in Microsoft SQL Server 2016 Community Technology Preview 2 (CTP2).

Removes an entry from the core.supported_collector_types view in the management data warehouse database. The procedure must be executed in the context of the management data warehouse database.

The core.supported_collector_types view shows the registered collector types that can upload data to the management data warehouse.

Applies to: SQL Server (SQL Server 2008 through current version).

Topic link icon Transact-SQL Syntax Conventions

core.sp_remove_collector_type [ @collector_type_uid = ] 'collector_type_uid'

[ @collector_type_uid = ] 'collector_type_uid'

The GUID for the collector type. collector_type_uid is uniqueidentifier, with no default value.

0 (success) or 1 (failure)

Requires membership in the mdw_admin (with EXECUTE permission) fixed database role.

The following example removes the Generic T-SQL Query collector type from the core.supported_collector_types view.

USE <management_data_warehouse>;
GO
DECLARE @RC int;
DECLARE @collector_type_uid uniqueidentifier;
SELECT @collector_type_uid = (SELECT collector_type_uid FROM msdb.dbo.syscollector_collector_types WHERE name = N'Generic T-SQL Query Collector Type');
EXECUTE @RC = core.sp_remove_collector_type @collector_type_uid;
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2015 Microsoft