Skip to content

Latest commit

 

History

History
26 lines (20 loc) · 1.98 KB

table-valued-parameter-data-conversion-and-other-errors-and-warnings.md

File metadata and controls

26 lines (20 loc) · 1.98 KB
title description author ms.author ms.date ms.service ms.subservice ms.topic helpviewer_keywords
Table-Valued Parameter data conversion
Table-Valued Parameter Data Conversion and Other Errors and Warnings
markingmyname
maghan
03/14/2017
sql
native-client
reference
table-valued parameters (ODBC), data conversion
table-valued parameters (ODBC), error messages

Table-Valued Parameter Data Conversion and Other Errors and Warnings

[!INCLUDESQL Server Azure SQL Database Synapse Analytics PDW]

Table-valued parameter column values can be converted between client and server data types in the same way as other column and parameter values. But because a table-valued parameter can contain multiple columns and multiple rows, it is important to be able to identify the actual value where the error occurred.

When an error or warning is detected in a table-valued parameter column, [!INCLUDEssNoVersion] Native Client will generate a diagnostic record. The error message will contain the parameter number of the table-valued parameter, plus the column ordinal and row number. An application can also use the diagnostic fields SQL_DIAG_SS_TABLE_COLUMN_NUMBER and SQL_DIAG_SS_TABLE_ROW_NUMBER within diagnostic records to determine which values are associated with errors and warnings. These diagnostic fields are available in [!INCLUDEsql2008-md] and later versions.

The SQLSTATE and message components of diagnostic records will conform to existing ODBC behavior in all other respects. That is, except for the parameter, row, and column identification information, error messages have the same values for table-valued parameters as they would for non-table-valued parameters.

See Also

Table-Valued Parameters (ODBC)