I have this statement, which works in SQL Server 2017:
REPLACE(CONCAT(NOM_TIPO_QUEBRA_ORDEM, CHAR(13), DSC_TIPO_QUEBRA_ORDEM, CHAR(13), HST_ORDEM_FILA_MOVIMENTO), CHAR(13) + CHAR(13), '') as justificativa_quebra
How can I do this same in SQL Server 2008, which does not support CONCAT
?
REPLACE(SELECT NOM_TIPO_QUEBRA_ORDEM, CHAR(13) + DSC_TIPO_QUEBRA_ORDEM, CHAR(13) + HST_ORDEM_FILA_MOVIMENTO), CHAR(13) + CHAR(13), '' as justificativa_quebra