Forum Discussion
SwaTHasSasIN
Nov 12, 2025Occasional Reader
“8152 String or binary data would be truncated” error while running select query on a view
I have a complex view (it’s organisational so i cannot paste it here) that joins multiple tables, uses CTEs, performs logical calculations and then provides for multiple columns over which we can sel...
- Nov 13, 2025
I was able to resolve it by using convert(nvarchar(max), <attributenames>) wherever possible. Made my query slower, but it’s not throwing error at least.
Not sure if this was the right way to resolve though.
SwaTHasSasIN
Nov 13, 2025Occasional Reader
I was able to resolve it by using convert(nvarchar(max), <attributenames>) wherever possible. Made my query slower, but it’s not throwing error at least.
Not sure if this was the right way to resolve though.