Conversion functions (Transact-SQL)
Applies to:
SQL Server
Azure SQL Database
Azure SQL Managed Instance
Azure Synapse Analytics
Analytics Platform System (PDW)
SQL analytics endpoint in Microsoft Fabric
Warehouse in Microsoft Fabric
The following functions support data type casting and conversion:
In this section
CAST and CONVERT
PARSE
TRY_CAST
TRY_CONVERT
TRY_PARSE