Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Local Text Larger then 8000

Status
Not open for further replies.

PaulBarbeau

Programmer
Nov 23, 2000
109
CA
How do you have a local text varable larger then 8000?
 
Simple answer - you don't. Local variables cannot be text, ntext or image data types, which are the only types that allow more than 8000 chars.

--James
 
James,

Is there any work around for this. Here is the post I just made:

Here are the details of what I am trying to do.

I have a procedure which has a incoming parameter that is an ID. Based on that ID I want to then perform a select statement that will select a field of type text from a table where a column matches with that ID. Then, I want to call a procedure and pass it the text variable which was just obtained. This is where I run into the error that I can not have a local variable of type text, ntext or image. Any ideas? I have tried selecting straight in for the parameter of a procedure but that doesn't work either.


Any suggestions would be greatly appreciated!

Lindsay
 
Rather than use a procedure inside a procedure, why not just call it directly in the calling procedure?

Just add it as another field in the query. Use your select asa derived table if necessary.

Questions about posting. See faq183-874
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top