sys.sp_getdefaultdatatypemapping
Returns information on the default mapping for data types between SQL Server and a non-SQL Server DBMS.
What changes
- Input
- Returns information on the default mapping for data types between SQL Server and a non-SQL Server DBMS.
- Output or change
- No write is stated in the Microsoft summary.
Syntax at a glance
sys.sp_getdefaultdatatypemapping
[ @source_dbms = ] N'source_dbms'
[ , [ @source_version = ] 'source_version' ]
, [ @source_type = ] N'source_type'
[ , [ @source_length = ] source_length ]
[ , [ @source_precision = ] source_precision ]
[ , [ @source_scale = ] source_scale ]
[ , [ @source_nullable = ] source_nullable ]
, [ @destination_dbms = ] N'destination_dbms'
[ , [ @destination_version = ] 'destination_version' ]
, [ @destination_type = ] N'destination_type' OUTPUT
, [ @destination_length = ] destination_length OUTPUT
, [ @destination_precision = ] destination_precision OUTPUT
, [ @destination_scale = ] destination_scale OUTPUT
, [ @destination_nullable = ] destination_nullable OUTPUT
, [ @dataloss = ] dataloss OUTPUT
[ ; ]
Work example
Returns information on the default mapping for data types between SQL Server and a non-SQL Server DBMS.
Write a proposed call on paper. Name the target, required permission, expected change, and recovery step before any lab use.
Check your work What can this procedure change or start, and what permission does it need?
Open Microsoft Learn for full syntax, permissions, and details for your version.