About 1,690,000 results
Open links in new tab
  1. CAST and CONVERT (Transact-SQL) - SQL Server | Microsoft Learn

    Reference for the CAST and CONVERT Transact-SQL functions. These functions convert expressions from one data type to another.

  2. SQL Server CAST () Function - W3Schools

    Aug 25, 2017 · Definition and Usage The CAST () function converts a value (of any type) into a specified datatype. Tip: Also look at the CONVERT () function. Syntax CAST (expression AS datatype (length))

  3. SQL Server CAST Function By Practical Examples

    Mar 14, 2019 · In this tutorial, you will learn how to use the SQL Server CAST () function to convert a value or an expression from one type to another.

  4. SQL Server CAST () Function - GeeksforGeeks

    Jul 23, 2025 · The CAST () function in SQL Server is a versatile tool for data transformation tasks. By understanding its usage and syntax, you can seamlessly convert data between different types to suit …

  5. CAST Function in SQL Server

    Nov 11, 2023 · In this SQL Server tutorial, you will learn about the CAST function in SQL Server, where you will understand how to cast or transform the datatype of the value to another datatype.

  6. SQL CAST Function for Data Type Conversions - SQL Server Tips

    May 25, 2021 · In this article we look at how to use the CAST function to change the data type for some data as well as compare CAST, CONVERT and PARSE functions.

  7. SQL Server CAST () Function - TutorialsTeacher.com

    When you convert data types with different decimal places, then the CAST () function either truncates the resulting value or rounds it off to the higher or lower value. In the following example, a decimal is …

  8. SQL CAST Function in SQL Server – Syntax, Examples, and Best …

    Mar 31, 2025 · Learn how to use the SQL CAST function for data type conversion in SQL Server. Get examples for converting numbers, strings, and dates with CAST in SQL. Avoid common errors and …

  9. SQL Server CAST () Function - tutorialsarena.com

    Converting a date string to a datetime value. The CAST () function in SQL Server converts a value from one data type to another. This is a crucial operation for data manipulation, ensuring that your data is …

  10. SQL Server: CAST Function - TechOnTheNet

    The syntax for the CAST function in SQL Server (Transact-SQL) is: The value to convert to another datatype. The datatype that you wish to convert expression to.