sp_changearticlecolumndatatype (języka Transact-SQL)

Zmienia mapowania artykuł kolumna danych typu dla publikacja Oracle.Ta procedura składowana jest wykonywany na dystrybutora na dowolnej bazy danych.

Ostrzeżenie

Mapowania między Wydawca obsługiwanych typów znajdują się domyślnie typu danych.Użyj sp_changearticlecolumndatatype tylko wtedy, gdy zastępowanie ustawień domyślnych.

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

Składnia


sp_changearticlecolumndatatype [ @publication= ] 'publication'
    [ @article = ] 'article' 
    [ @column = ] 'column'
    [ , [ @type = ] 'type' ]
    [ , [ @length = ] length ]
    [ , [ @precision = ] precision ]
    [ , [ @scale = ] scale ]
    [ , [ @publisher = ] 'publisher'

Argumenty

  • [ @ publikacja = 'publication"
    Is the name of the Oracle publication.publication is sysname, with no default.

  • [ @ artykuł = 'article"
    Is the name of the article.article is sysname, with no default.

  • [ @ kolumna=] 'column"
    Is the name of the column for which to change the data type mapping.column is sysname, with no default.

  • [ @type = ] 'type'
    Is the name of the Microsoft SQL Server data type in the destination column.type is sysname, with a default of NULL.

  • [ @length = ] length
    Is the length of the SQL Server data type in the destination column.length is bigint, with a default of NULL.

  • [ dokładność @=] precision
    Is the precision of the SQL Server data type in the destination column.precision is bigint, with a default of NULL.

  • [ program publisher @ =] 'publisher"
    Specifies a non-SQL Server publisher.publisher is sysname, with a default of NULL.

Wartości kodów powrotnych

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

Uwagi

Sp_changearticlecolumndatatype jest używana do zastąpić domyślne mapowania typu danych między obsługiwanych typów Wydawca (Oracle i SQL Server).Do widoku tych domyślny typ danych mapowania wykonać sp_getdefaultdatatypemapping.

sp_changearticlecolumndatatype jest obsługiwana tylko dla wydawców Oracle.Wykonywanie to procedura składowana przeciwko SQL Server publikacja wyniki w błąd.

sp_changearticlekolumnatyp danych muszą być wykonane dla każdego artykuł kolumna mapowania, która musi zostać zmieniony.

Uprawnienia

Tylko członkowie sysadmin stała rola serwera lub db_owner ustaloną rola bazy danych można wykonać sp_changearticlecolumndatatype.