469,129 Members | 1,743 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,129 developers. It's quick & easy.

SQL 2000 Text Field Problem

I am having problems updating a text field with a very large string.

If I build a string in code using a string variable and then update 1 row I have no problem. However, I want to run an update statement that hits many rows. When I run the stored proc that does this my string is being truncated near 3,800 characters.

Here's an example of what I'm trying to do.
BigString is a TEXT field.

Update Table1
Set BigString = 'blah, blah, blah ' + Table1.Field1 + ' blah, blah, blah ' + Table2.Field1, etc..
From Table1 Inner Join Table2 On ....

My guess is because the actual string builds on the fly that SQL engine stores it in some temporary nVarChar like structure and it runs out of space.

Any possible work arounds or solutions would be appreciated. Thanks in advance.
Oct 18 '06 #1
0 1810

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

6 posts views Thread by Michael Bulatovich | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.