I have a table with data type text column. while using text type variables in function I get error like The text, ntext, and image data types are invalid for local variables.
For now I am using VARCHAR(MAX) type variables in function but I cant get whole text of that field. I am losing lots of data from that function and my query output is not precise.
How can I use text/ntext data type in SQL Function to get precise output?
Thanks in advance.