Aracılığıyla paylaş


sp_syscollector_create_collector_type (Transact-SQL)

Toplayıcı türü için veri toplayıcısı oluşturur.A toplayıcı türü geçici mantıksal bir sarmalayıcı olan SSIS paketleri veri toplama ve yönetim veri ambarı bu karşıya yükleniyor gerçek bir mekanizma sağlar.

Topic link iconTransact-SQL sözdizimi kuralları

sp_syscollector_create_collector_type 
        [ [@collector_type_uid = ] 'collector_type_uid' OUTPUT ]
        , [ @name = ] 'name'
        , [ [ @parameter_schema = ] 'parameter_schema' ]
        , [ [ @parameter_formatter = ] 'parameter_formatter' ]
        , [ @collection_package_id = ] 'collection_package_id'
        , [ @upload_package_id = ] 'upload_package_id'

Bağımsız değişkenler

  • [collector_type_uid =] ' collector_type_uid'
    Is the GUID for the collector type.collector_type_uid is uniqueidentifier and if it is NULL it will be automatically created and returned as OUTPUT.

  • [adı =] ' name'
    Is the name of the collector type.name is sysname and must be specified.

  • [parameter_schema =] ' parameter_schema'
    Is the XML schema for this collector type.parameter_schema is xml with a default of NULL.

  • [parameter_formatter =] ' parameter_formatter'
    Is the template to use to transform the XML for use in the collection set property page.parameter_formatter is xml with a default of NULL.

  • [collection_package_id =] collection_package_id
    Is a local unique identifier that points to the SSIS collection package used by the collection set.collection_package_id is uniqueidentifer and is required.

  • [upload_package_id =] upload_package_id
    Is a local unique identifier that points to the SSIS upload package used by the collection set.upload_package_id is uniqueidentifier and is required.

Dönüş Kodu Değerleri

0 (başarılı) veya 1 (hata)

İzinler

Bu yordamı çalıştırmak yürütmek izni) ile (dc_admin sabit veritabanı rolü üyeliği gerekir.

Example

Bu genel bir T-SQL sorgu Toplayıcı türü oluşturur.

EXEC sp_syscollector_create_collector_type
@collector_type_uid = '302E93D1-3424-4be7-AA8E-84813ECF2419',
@name = 'Generic T-SQL Query Collector Type',
@parameter_schema = '<?xml version="1.0" encoding="utf-8"?>
  <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="DataCollectorType">
    <xs:element name="TSQLQueryCollector">
      <xs:complexType>
        <xs:sequence>
          <xs:element name="Query" minOccurs="1" maxOccurs="unbounded">
            <xs:complexType>
              <xs:sequence>
                <xs:element name="Value" type="xs:string" />
                <xs:element name="OutputTable" type="xs:string" />
              </xs:sequence>
            </xs:complexType>
          </xs:element>
          <xs:element name="Databases" minOccurs="0" maxOccurs="1">
            <xs:complexType>
              <xs:sequence>
                <xs:element name="Database" minOccurs="0" maxOccurs="unbounded" type="xs:string" />
              </xs:sequence>
              <xs:attribute name="UseSystemDatabases" type="xs:boolean" use="optional" />
              <xs:attribute name="UseUserDatabases" type="xs:boolean" use="optional" />
            </xs:complexType>
          </xs:element>
        </xs:sequence>
      </xs:complexType>
    </xs:element>
  </xs:schema>',
@collection_package_id = '292B1476-0F46-4490-A9B7-6DB724DE3C0B',
@upload_package_id = '6EB73801-39CF-489C-B682-497350C939F0'
GO

Değişiklik Geçmişi

Güncelleştirilmiş içerik

@ Collector_type_uid bağımsız değişken isteğe bağlı olduğunu gösterdi.

@ Parameter_formatter bağımsız değişken eklenir.

"Örnek" bölüm kodu için güncelleştirildi.

See Also

Reference

Other Resources