Bob
2012-07-06 05:17:29 UTC
I am starting with a
Declare @insertString varchar(8000)
Then I'm creating a cursor and looping through records while setting
@insertString = @insertString + 'the newest record from the cursor'
This works fine but for some reason the maximum SIZE for the @insertString stops at 4000
Why is this?
Again, it works fine as long as the len is 4000 or less.
The table field is clearly a varchar(8000)
Anybody got any ideas?
Bob Sweeney
Declare @insertString varchar(8000)
Then I'm creating a cursor and looping through records while setting
@insertString = @insertString + 'the newest record from the cursor'
This works fine but for some reason the maximum SIZE for the @insertString stops at 4000
Why is this?
Again, it works fine as long as the len is 4000 or less.
The table field is clearly a varchar(8000)
Anybody got any ideas?
Bob Sweeney