concat sql more than 8kb

  • Hi,

    I want to form a string out of a column for all records satisfying a particular criteria, this string is to be put into a file.

    declare @X24Text varchar(8000)

    Select  @X24Text = @X24Text + col1

    FROM  table1 where col2 = '100'

    The problem is that the concatenated string size can be more than 8kb. How do I deal with this problem ?

    I have defined this as a step in dts, so if there are any alternatives in dts are also welcome.

    Thanks in Advance

     

  • I think you'll have to use an activeX script to do this in the dts... You'll be able to use a sring and won't have any length limit.

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply