June 6, 2007 at 3:07 pm
I'm writing store procedure with more than 8000 characters because of the HTML data. I must declare a variable to hold that data; however, SQL2K's variable does not allow more than 8K of characters. Is there a way to go around this?
Please help and thanks for your support.
Minh Vu
June 6, 2007 at 3:20 pm
Short of upgrading to 2005, the typical method (even MS uses it for storing stored procs, for example), is to split the data into more than 1 row, with some sort of unique identifier to group them together, and a step value to order them. Then it can be put back together easily. It's not in a variable then, but it's often close enough to accomplish the task.
June 6, 2007 at 3:31 pm
Thanks so much for the hint. Let me try that way to see.
I'm really appreciate your help.
Minh Vu
June 7, 2007 at 12:07 am
It did not work for me at all since later I need to pass in parameter for sp_OAsetproperty. The limit for this system sp is also 8K I guessed.
Anyone has any other ideas. This is really tough.
Minh Vu
June 7, 2007 at 6:10 am
I'm still not seeing why it wouldn't work, but you haven't give us much to work with here in the way of details. Since that system stored proc just sets properties, it shouldn't matter what you send it. You could easily set that property to an identifier instead of the full text of the html, for instance.
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply