About 304,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. CAST and CONVERT (Transact-SQL) - SQL Server | Microsoft Learn

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

  3. SQL Server CONVERT Function Explained By Practical Examples

    Mar 14, 2019 · The CONVERT() function allows you to convert a value of one type to another. The following shows the syntax of the CONVERT() function: CONVERT ( target_type [ ( length ) ] , expression [ , style ] ) Code language: SQL (Structured Query Language) ( sql )

  4. Examples for SQL CAST and SQL CONVERT Functions

    Sep 16, 2021 · In this tutorial, we’ll show you how you can convert between different data types in Microsoft SQL Server. The T-SQL language offers two functions to convert data from one data type to a target data type: CAST and CONVERT.

  5. SQL Convert Function In Depth - MSSQLTips.com - SQL Server …

    Jan 20, 2022 · What is the CONVERT function? 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.

  6. SQL Convert Examples for Dates, Integers, Strings and more

    May 28, 2024 · In this article, we look at how to use the SQL CONVERT function to convert between data types such as date, integers, strings, and more.

  7. CONVERT - SQL Tutorial

    The SQL CONVERT function is used to convert an expression from one data type to another. It’s a powerful function that allows you to handle data type conversions and format the output according to a specified style.

  8. CONVERT Function in SQL Server

    Nov 11, 2023 · In this SQL Server tutorial, I will show how to use the CONVERT function in SQL Server. Where you will see how to use the CONVERT() function to convert the data type of the value to another data type in an explicit way.

  9. SQL Server: CONVERT Function - TechOnTheNet

    This SQL Server tutorial explains how to use the CONVERT function in SQL Server (Transact-SQL) with syntax and examples. In SQL Server (Transact-SQL), the CONVERT function converts an expression from one datatype to another datatype. If the conversion fails, the function will return an error. Otherwise, it will return the converted value.

  10. SQL Server CONVERT: A How-To Guide with Examples - Simple SQL

    Feb 14, 2022 · CONVERT is a T-SQL system function used to convert a column or expression from one data type to another “on the fly”. As part of it’s syntax, you specify a style to use for the conversion, making it a very safe conversion function.

  11. Some results have been removed
Refresh