sp_helpdatatypemap (języka Transact-SQL)

Returns information on the defined data type mappings between Microsoft SQL Server and non-SQL Server database management systems (DBMS).Ta procedura składowana jest wykonywany na dystrybutora na dowolnej bazy danych.

Ikona łącza do tematuKonwencje składni Transact-SQL

Składnia

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 ]

Argumenty

  • [ @ 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.

    Wartość

    Opis

    MSSQLSERVER

    Źródło jest SQL Server bazy danych.

    ORACLE

    Źródło jest baza danych Oracle.

  • [ @ 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.Umożliwia zestaw wyników do filtrowane przez źródło wersja systemu DBMS.

  • [ @ 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.Włącza zestaw wyników będą filtrowane według typu danych w źródło systemu DBMS.

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

    Wartość

    Opis

    MSSQLSERVER

    obiekt obiekt docelowy jest SQL Server bazy danych.

    ORACLE

    obiekt obiekt docelowy jest baza danych Oracle.

    DB2

    obiekt obiekt docelowy jest bazą danych IBM DB2.

    SYBASE

    obiekt obiekt docelowy jest baza danych Sybase.

  • [ @ 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.Włącza zestaw wyników będą filtrowane według obiekt docelowy wersja systemu DBMS.

  • [ @ 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.Włącza zestaw wyników będą filtrowane według typu danych w obiekt docelowy systemu DBMS.

  • [ @ defaults_only=] defaults_only
    Is if only the default data type mappings are returned.defaults_only is bit, with a default of 0.1 oznacza, że tylko jako domyślny typ danych mapowania są zwracane.0 oznacza domyślną i wszystkie dane zdefiniowane przez użytkownika wpisz mapowania są zwracane.

Zestawy wyników

Nazwa kolumny

Opis

mapping_id

Określa mapowanie typu danych.

source_dbms

Nazwa i numer wersja źródło jest DBMS.

source_type

Jest to typ danych źródło DBMS.

destination_dbms

Jest to nazwa obiekt docelowy systemu DBMS.

destination_type

Jest to typ danych w obiekt docelowy systemu DBMS.

is_default

Jest mapowanie domyślne lub alternatywnych mapowania.Wartość 0 wskazuje, że to mapowanie jest zdefiniowany przez użytkownika.

Wartości kodów powrotnych

0 (sukces) lub 1 (błąd)

Uwagi

sp_helpdatatypemap definiuje mapowania typu danych zarówno z innych niż - SQL Server i z SQL Server wydawcy, inne niż-SQL Server abonentów.

Gdy określonej kombinacji źródło i obiekt docelowy systemie DBMS nie jest obsługiwana, sp_helpdatatypemap zwraca zestaw wyników puste.

Uprawnienia

Tylko członkowie sysadmin stała rola serwera u dystrybutora lub członkami db_owner można wykonać ustaloną rola bazy danych do baza danych dystrybucji sp_helpdatatypemap.