Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Error " "The text, ntext, and image data types are invalid for local variables"

$
0
0
I need to do within SQL is to query a database and then to assign these results to variables which are then used as parameters while calling a stored procedure.Within SQL you can not declare a text variable (Declare @MyText text;) as it gives this error:"The text, ntext, and image data types are invalid for local variables.Now I could make this a varchar(8000) variable but this is not large enough to hold all of the information and will be truncated.
Pls. help.

Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>