T-SQL

How To Manage Line Breaks in SQL Server ?

How to insert or remove SQL Server line breaks, also called carriage returns in strings, columns and variables? Transact-SQL scripts to manage line breaks in SQL Server strings stored in columns or variables. In other words how to remove

T-SQL

SQL Server UNPIVOT Example

Using this T-SQL example, you can easily transform columns into rows with just one step thanks to the SQL Server UNPIVOT function. It is the exact opposite of the PIVOT query. In this example, only the six first months