Aracılığıyla paylaş


sp_helpdatatypemap (Transact-SQL)

Returns information on the defined data type mappings between Microsoft SQL Server and non-SQL Server database management systems (DBMS).Bu saklı yordam, herhangi bir veritabanı üzerinde dağıtımcı adresindeki yürütülür.

Konu bağlantısı simgesiTransact-sql sözdizimi kuralları

Sözdizimi

sp_helpdatatypemap [ @source_dbms = ] 'source_dbms' 
    [ , [ @source_version = ] 'source_version' ]
    [ , [ @source_type = ] 'source_type' ] 
    [ , [ @destination_dbms = ] 'destination_dbms' ]
    [ , [ @destination_version = ] 'destination_version' ]
    [ , [ @destination_type = ] 'destination_type' ]
    [ , [ @defaults_only = ] defaults_only ]

Bağımsız değişkenler

  • [ @ source_dbms=] 'source_dbms'
    Is the name of the DBMS from which the data types are mapped.source_dbms is sysname, and can be one of the following values.

    Değer

    Açıklama

    MSSQLSERVER

    kaynak SQL Server veritabanı.

    ORACLE

    kaynak Oracle veritabanıdır.

  • [ @ source_version=] 'source_version'
    Is the product version of the source DBMS.source_versionis varchar(10), and if not specified, the data type mappings for all versions of the source DBMS are returned.Sağlayan sonuç küme dbms kaynak sürüm tarafından filtre uygulanacak.

  • [ @ source_type=] 'source_type'
    Is the data type listed in the source DBMS.source_type is sysname, and if not specified, mappings for all data types in the source DBMS are returned.Sağlayan sonuç küme dbms kaynak veri türüne göre filtre uygulanacak.

  • [ @ destination_dbms =] 'destination_dbms'
    Is the name of the destination DBMS.destination_dbms is sysname, and can be one of the following values.

    Değer

    Açıklama

    MSSQLSERVER

    Hedef bir SQL Server veritabanı.

    ORACLE

    Hedef, bir Oracle veritabanıdır.

    DB2

    Hedef bir IBM DB2 veritabanıdır.

    SYBASE

    Hedef Sybase veritabanıdır.

  • [ @ destination_version=] 'destination_version'
    Is the product version of the destination DBMS.destination_versionis varchar(10), and if not specified, mappings for all versions of the destination DBMS are returned.Sağlayan sonuç küme dbms hedef sürüm tarafından filtre uygulanacak.

  • [ @ destination_type=] 'destination_type'
    Is the data type listed in the destination DBMS.destination_typeis sysname, and if not specified, mappings for all data types in the destination DBMS are returned.Sağlayan sonuç küme dbms hedef veri türüne göre filtre uygulanacak.

  • [ @ defaults_only=] defaults_only
    Is if only the default data type mappings are returned.defaults_only is bit, with a default of 0.1 dönen yalnızca varsayılan veri eşleme türü anlamına gelir.0 dönen eşlemelerini varsayılan ve tüm kullanıcı tanımlı veri yazın anlamına gelir.

Sonuç Kümeleri

Sütun adı

Açıklama

mapping_id

Veri türü eşleştirme tanımlar.

source_dbms

Adı ve sürüm kaynak dbms sayısıdır.

source_type

dbms kaynak veri türüdür.

destination_dbms

dbms hedef adıdır.

destination_type

dbms hedef veri türüdür.

is_default

Eşleme varsayılan veya alternatif bir eşleme olmasıdır.Değeri, 0 Bu eşleme, kullanıcı tanımlı olduğunu gösterir.

Dönüş Kodu Değerleri

0 (başarılı) veya 1 (başarısız)

Açıklamalar

sp_helpdatatypemap hem dan olmayan - sql Server yayımcılar hem de veri türü eşlemeleri tanımlar SQL Server olmayan bir yayımcıya-SQL Server aboneleri.

Belirtilen kaynak ve hedef dbms birleşimi desteklendiğinde, sp_helpdatatypemap bir boş sonuç küme döndürür.

İzinler

Yalnızca üyeleri sysadmin sabit sunucu rolü Dağıtımcı veya üyeleri db_owner dağıtım veritabanı üzerinde sabit veritabanı rolü olabilir yürütmek sp_helpdatatypemap.