I have a sql query which produces the size more than varchar (8000)/max size. So my stored procedure get crashes. Can any one help me to work around with this problem, I greatly apprecaite it.
DECLARE @sql varchar(8000) -- The maximum limit of varchar 8000
//My @sql query goes here
EXEC (@sql) //crashes