I am getting a error when I execute the following query :
select MaterialTypes as 'Reasons(Polyesters. Unsaturated polyester resins are the simplest,Orthophthalic,Isophthalic,Vinyl ester,Phenolic, Epoxy, Gel coat)' from Material
as
Msg 103, Level 15, State 4, Line 9 The identifier that starts with 'Reasons(Polyesters. Unsaturated polyester resins are the simplest,Orthophthalic,Isophthalic,Vinyl ester,Phenolic, Epoxy, Gel coat)' is too long. Maximum length is 128.
I found similar issue How to resolve maximum length of 128 on a column alias when using FOR XML PATH?
However the solution dint help. Can anyone tell me how to increase the ALIAS length?