September 13, 2004 at 5:17 pm
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
September 14, 2004 at 1:24 am
DECLARE @sSQLSELECT VARCHAR(8000)
DECLARE @sSQLFROM VARCHAR(8000)
DECLARE @sSQLWHERE VARCHAR(8000)
SET @sSQLSELECT='SELECT .......'
etc
EXEC( @sSQLSELECT + @sSQLFROM + @sSQLWHERE)
September 14, 2004 at 1:39 am
Thanks David. Appreciate.
raj
Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy