it seems that the PRINT function will not print past 4000 characters for nvarchar and 8000 character for char in management studio. Is there any way around this?
here is some demo code to prove it
declare @x varchar(max) set @x = replicate('x' ,7999) PRINT @x set @x = replicate('x' ,8000) PRINT @x set @x = replicate('x' ,8001) PRINT @x declare @y nvarchar(max) set @y = replicate('y' ,3999) PRINT @y set @y = replicate('y' ,4000) PRINT @y set @y = replicate('y' ,4001) PRINT @y