About 362,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 …

  3. SQL CAST() Function: An Overview - LearnSQL.com

    Dec 3, 2024 · The SQL CAST () function converts one data type to another. This article discusses what the function is for, and when and how you’d use it. In relational databases, every column …

  4. SQL Server CAST () Function - GeeksforGeeks

    Jul 23, 2025 · Whether you need to change a string to a number, adjust the precision of a decimal, or alter the format of a date, the CAST () function provides the flexibility to manipulate …

  5. 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.

  6. SQL CAST Function for Data Type Conversions

    May 25, 2021 · What is the SQL CAST Function? The short answer: The SQL CAST function is used to explicitly convert a given data type to a different data type in a SQL database.

  7. 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 …

  8. Mastering the CAST Function in SQL: A Comprehensive Guide

    May 25, 2025 · In this blog, we’ll explore what CAST is, how it works, when to use it, and how it compares to related functions like CONVERT or TO_CHAR. With detailed examples and clear …

  9. SQL Server: CAST Function - TechOnTheNet

    SQL Server: CAST Function This SQL Server tutorial explains how to use the CAST function in SQL Server (Transact-SQL) with syntax and examples.

  10. CASTSQL Tutorial

    Nov 29, 2023 · The SQL CAST function is used to convert an expression of one data type to another. This conversion can be necessary when you need to perform operations on data of …