Viewing post 1 (of 1 total)
The problem was with REPLICATE truncating the data before it ever got to CLR.
Per the documentation:
If string_expression is not of type varchar(max) or nvarchar(max), REPLICATE truncates the return...
November 26, 2013 at 9:28 am
#1669198