sp_changearticlecolumndatatype (języka Transact-SQL)

Zmienia mapowania typu danych kolumna artykuł dla publikacja bazy danych Oracle.Ta procedura przechowywana jest wykonywany na dystrybutor na dowolnej bazy danych.

Uwaga

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

Topic link iconKonwencje składni języka Transact-SQL


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

Argumenty

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

  • [ @article = ] '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.

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

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

Wartości kodów powrotnych

0 (sukces) lub 1 (brak)

Remarks

Sp_changearticlecolumndatatype można zastąpić domyślne mapowania typów danych obsługiwanych typów Wydawca (Oracle i SQL Server). Aby wyświetlić te domyślne mapowania typów danych, wykonać sp_getdefaultdatatypemapping.

sp_changearticlecolumndatatype jest obsługiwana tylko dla programu Oracle wydawcy.To wykonywanie procedura przechowywana przed, SQL Server Publikacja zakończy się błędem.

sp_changearticlecolumndatatype muszą być wykonywane dla każdego artykuł mapowanie kolumna, które musi zostać zmieniony.

Uprawnienia

Tylko członkowie sysadmin Rola serwera lub db_owner stała rola bazy danych może być wykonywany sp_changearticlecolumndatatype.