I’m using the varchar(MAX) value for text but as I’m building up the huge SQL it cuts the ending off.
Is there any way I can create a Dynamic Declare statement that I can then join together with others when executing the sql?
e.g. something like:
DECLARE @sSQLLeft + Convertvarchar(4),@index) varchar(MAX)
varchar(max)is up to about 2GB are you sure it cuts the ending off or is it just when you print it it only displays the first few hundred characters?To View long text in SSMS without it getting truncated you can use this trick