Hi, I usually defining size when declaring parameters in my SP, like :
@myParam nvarchar(size)
or when I casting or converting:
CAST(@myParam AS nvarchar(size))
Recently I removed size from my CAST functions like:
CAST(@myParam AS nvarchar)
and I'm bit worried if that is going to come and bite me when least expected :-(, since I noticed truncation on nvarchar variables when using recursive CTE and casting nvarchar without specifying size.
Any comments?