Forum Discussion

SwaTHasSasIN's avatar
SwaTHasSasIN
Occasional Reader
Nov 12, 2025
Solved

“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...
  • SwaTHasSasIN's avatar
    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. 

Resources