About 8,070,000 results
Open links in new tab
  1. SQL Server CONVERT() Function - W3Schools

    The CONVERT() function converts a value (of any type) into a specified datatype. Tip: Also look at the CAST() function. Syntax

  2. SQL CAST Function for Data Type Conversions

    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.

  3. Examples for SQL CAST and SQL CONVERT Functions

    Sep 16, 2021 · Learn how to convert SQL Server data to different data types such as string, date, integer and numeric using the CAST and CONVERT functions.

  4. Converting Data Types in SQL: Essential Techniques for Data

    Apr 3, 2025 · Learn how to convert data types in SQL using CAST, CONVERT, and best practices. Optimize performance and avoid common pitfalls with our expert guide.

  5. SQL Server CAST Function With Examples for Data Type Conversion

    Mar 31, 2025 · The value you want to convert. target_data_type : The desired data type to convert the expression into. length (optional) Specifies the length for CHAR, VARCHAR, NCHAR, or NVARCHAR. SQL Server assigns a default length if omitted, which may cause unintended truncation when working with strings.

  6. SQL Convert Function In Depth - MSSQLTips.com - SQL Server Tips

    Jan 20, 2022 · The CONVERT function is a conversion function that allows you to both convert data between different datatypes and format the result at the same time. Eg. convert text input to a specific date format. It is important to note that the CONVERT function is specific to SQL Server and is not part of the ANSI standard.

  7. SQL CAST and SQL CONVERT function overview - SQL Shack

    Nov 16, 2018 · Sometimes we need to convert data between different SQL data types. In addition to working with data, there are some built-in functions can be used to convert the data. So let’s take a closer look at the SQL conversion functions SQL CAST and SQL CONVERT in detail.

  8. How to convert a value of one type to another type in SQL server

    Dec 7, 2020 · The CONVERT () function in SQL server is used to convert a value of one type to another type. Syntax : Parameters used : It provides the length of the target_type. Length is not mandatory. Default length is set to 30. expression is anything that will be converted.

  9. SQL CONVERT Function - Tutorial Kart

    In this tutorial, we will explore the SQL CONVERT function, its syntax, and practical examples demonstrating how to use it effectively. The basic syntax of the CONVERT function is: Parameters: data_type (length): The target data type to which the expression is converted. expression: The value or column that needs to be converted.

  10. SQL CAST & CONVERT Function – Modifying Data Types

    We can use the SQL CAST function and SQL Server CONVERT () function to modify data types such as INT to VARCHAR, VARCHAR to INT, etc..

  11. Some results have been removed
Refresh