Skip to content

Latest commit

 

History

History
40 lines (35 loc) · 2.67 KB

msdbms-datatype-mapping-transact-sql.md

File metadata and controls

40 lines (35 loc) · 2.67 KB
title description author ms.author ms.date ms.service ms.subservice ms.topic f1_keywords helpviewer_keywords dev_langs
MSdbms_datatype_mapping (Transact-SQL)
MSdbms_datatype_mapping (Transact-SQL)
VanMSFT
vanto
03/04/2017
sql
replication
reference
MSdbms_datatype_mapping_TSQL
MSdbms_datatype_mapping
MSdbms_datatype_mapping system table
TSQL

MSdbms_datatype_mapping (Transact-SQL)

[!INCLUDE SQL Server]

The MSdbms_datatype_mapping table contains the allowable data type mappings from the data type in the source database management system (DBMS) to one or more specific data types in the destination DBMS. This table is stored in the msdb database and is used for heterogeneous database replication.

Column name Data type Description
datatype_mapping_id int Identifies each unique data type mapping.
map_id int Identifies the source data type.
dest_datatype_id int Identifies the destination data type.
dest_precision bigint Defines the precision of the destination data type, where a value of NULL means that precision is not used, and a value of -1 means that the precision of the source data type is used.
dest_scale int Defines the scale of the destination data type, where a value of NULL means that scale is not used, and a value of -1 means that the scale of the source data type is used.
dest_length bigint Defines the length of the destination data type, where a value of NULL means that length is not used, and a value of -1 means that the length of the source data type is used.
dest_nullable bit Indicates whether the destination column in the mapping allows NULL values, where a value of NULL means that this definition is not required.
dest_createparams int The bitmap that describes what combination of length, precision, and scale are applicable for each data type, which includes:

0x1 = PRECISION.

0x2 = SCALE.

0x4 = LENGTH.

See Also

Heterogeneous Database Replication
Specify Data Type Mappings for an Oracle Publisher
Replication Tables (Transact-SQL)
Replication Views (Transact-SQL)