About 3,810,000 results
Open links in new tab
  1. Concatenate String + date in SQL Server - Stack Overflow

    Jul 12, 2017 · If you're using SQL Server 2012 or newer, then you can use FORMAT to change a date or datetime into a varchar with the format of your liking. select CONCAT([Key],'-',ID,' …

  2. SQL Server: How to concatenate string constant with date?

    Oct 23, 2013 · select packageid, status + ' Date : ' + CAST(UpdatedOn AS VARCHAR(10)) from [Shipment_Package]; You might also need to use CONVERT if you want to format the …

  3. + (String concatenation) (Transact-SQL) - SQL Server | Microsoft …

    An operator in a string expression that concatenates two or more character or binary strings, columns, or a combination of strings and column names into one expression (a string …

  4. How to concatenate DateParts in Sql Server - Stack Overflow

    May 23, 2013 · You could use CONVERT with style 114 (section Date and Time Styles): SELECT CONVERT(VARCHAR(5), GETDATE(), 114); or, starting from SQL Server 2012 you can use …

  5. SQL Server CONCAT() Function - W3Schools

    The CONCAT() function adds two or more strings together. Note: See also Concat with the + operator and CONCAT_WS(). Syntax

  6. SQL Concatenate Strings Example - SQL Server Tips

    Aug 12, 2022 · The + concatenation operator is the most common way to concatenate strings in T-SQL. The following example concatenates the FirstName and LastName with a space …

  7. How to Concatenate Strings in SQL - LearnSQL.com

    To append a string to another and return one result, use the || operator. This adds two strings from the left and right together and returns one result. If you use the name of the column, don’t …

  8. Hod Do I CONCATENATE YEAR (DATE) with a string

    Feb 11, 2023 · SELECT ClientCode, ClientName,TotalCommission,DATENAME(MONTH,RenewalDate) AS [Month], …

  9. sql server - Combine datetime + string to make a proper datetime ...

    I need to take a DATETIME column (Column A) that contains only a date, then add a VARCHAR(5) column (Column B) which contains a 24-hour representation of a time (i.e. …

  10. SQL Concatenate Examples - SQL Server Tips

    Oct 5, 2021 · In this article we look at how to concatenate SQL Server data using various methods using concatenation operator, functions CONCAT and CONCAT_WS.

  11. Some results have been removed
Refresh