다음을 통해 공유


TransArticle.SetColumnDestinationDataType Method

Sets the column data type mapping for a non-SQL Server Publisher.

네임스페이스: Microsoft.SqlServer.Replication
어셈블리: Microsoft.SqlServer.Rmo (in microsoft.sqlserver.rmo.dll)

구문

‘선언
Public Sub SetColumnDestinationDataType ( _
    columnName As String, _
    dataType As String, _
    precision As Long, _
    scale As Integer, _
    length As Long _
)
public void SetColumnDestinationDataType (
    string columnName,
    string dataType,
    long precision,
    int scale,
    long length
)
public:
void SetColumnDestinationDataType (
    String^ columnName, 
    String^ dataType, 
    long long precision, 
    int scale, 
    long long length
)
public void SetColumnDestinationDataType (
    String columnName, 
    String dataType, 
    long precision, 
    int scale, 
    long length
)
public function SetColumnDestinationDataType (
    columnName : String, 
    dataType : String, 
    precision : long, 
    scale : int, 
    length : long
)

매개 변수

  • columnName
    A String value that specifies the name of the column for which the destination data type is changed.
  • dataType
    A String value that specifies the data type to which the column is changed.
  • precision
    An Int32 value that specifies the precision of the data type. Set this parameter to -1 if it does not apply to the specified data type.
  • scale
    An Int32 value that specifies the scale of the data type. Set this parameter to -1 if it does not apply to the specified data type.
  • length
    An Int32 value that specifies the length of the data type. Set this parameter to -1 if it does not apply to the specified data type.

주의

The SetColumnDestinationDataType method is only supported for non-SQL Server Publishers.

The SetColumnDestinationDataType method can only be called by members of the sysadmin fixed server role at the Distributor or by members of the db_owner fixed database role on the database.

Calling SetColumnDestinationDataType is equivalent to executing sp_changearticlecolumndatatype.

The SetColumnDestinationDataType method is only available when working with instances of SQL Server 2005 or later.

This namespace, class, or member is supported only in version 2.0 of the .NET Framework.

스레드 보안

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

플랫폼

개발 플랫폼

지원되는 플랫폼 목록은 SQL Server 2005 설치를 위한 하드웨어 및 소프트웨어 요구 사항을 참조하십시오.

대상 플랫폼

지원되는 플랫폼 목록은 SQL Server 2005 설치를 위한 하드웨어 및 소프트웨어 요구 사항을 참조하십시오.

참고 항목

참조

TransArticle Class
TransArticle Members
Microsoft.SqlServer.Replication Namespace

관련 자료

Oracle 게시자에 대한 데이터 형식 매핑