I have a query where I'm trying to concatenate a GUID to a string. No matter what I do, or what I try to convert the GUID to, I get an arithmetic overflow error. Even this:
select CAST(NEWID() as nvarchar)
Returns:
Msg 8115, Level 16, State 2, Line 1 Arithmetic overflow error converting expression to data type nvarchar
All similar questions have been resolved by a CAST or CONVERT but this always returns an error. Same result for CHAR or VARCHAR. Is there a setting I have to change to make this work or something?